another bug, this time in CodecStream

pull/3/head
Tom Early 2 years ago
parent f0486ec1f9
commit 1a66c49dca

@ -127,7 +127,7 @@ void CCodecStream::Task(void)
}
STCPacket pack;
if (! g_TCServer.Receive(m_CSModule, pack, 8))
if (g_TCServer.Receive(m_CSModule, pack, 8))
{
// update statistics
double rt = pack.rt_timer.time(); // the round-trip time

@ -149,7 +149,7 @@ bool CTCSocket::receive(int fd, STCPacket &packet)
return false;
}
// returns false if there is data to return
// returns true if there is data to return
bool CTCServer::Receive(char module, STCPacket &packet, int ms)
{
bool rv = false;
@ -183,7 +183,7 @@ bool CTCServer::Receive(char module, STCPacket &packet, int ms)
rv = ! receive(pfds->fd, packet);
}
// I think it's possible that we read the data, but the socket had an error after the read...
// I think it's possible that even if we read the data, the socket can have an error after the read...
// So we'll check...
if (pfds->revents & POLLERR || pfds->revents & POLLHUP)
{

Loading…
Cancel
Save

Powered by TurnKey Linux.