Commit b9426108 authored by jcacerec's avatar jcacerec
Browse files

fixed bug in worker class

parent cc6a0389
......@@ -231,12 +231,14 @@ int JackTripWorker::setJackTripFromClientHeader(JackTrip& jacktrip)
//cout << "---------> ELAPSED TIME: " << elapsedTime << endl;
}
}
/*
sleep.wait(&mutex,100);
if (!UdpSockTemp.hasPendingDatagrams()) {
std::cerr << "--->JackTripWorker: is not receiving Datagrams" << endl;
UdpSockTemp.close();
return -1;
}
*/
int packet_size = UdpSockTemp.pendingDatagramSize();
char packet[packet_size];
UdpSockTemp.readDatagram(packet, packet_size);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment