diff --git a/socket.c b/socket.c index 6199cac..cac6d2b 100644 --- a/socket.c +++ b/socket.c @@ -78,6 +78,11 @@ void cSatipSocket::Close(void) sequenceNumberM = -1; memset(&sockAddrM, 0, sizeof(sockAddrM)); } + if (packetErrorsM) { + info("detected %d RTP packet errors", packetErrorsM); + packetErrorsM = 0; + lastErrorReportM = time(NULL); + } } bool cSatipSocket::Flush(void)