Terminate the connection if we can't receive a key frame in 10 seconds

This commit is contained in:
Cameron Gutman
2020-08-29 21:00:05 -07:00
parent a89fcb8a46
commit 1b022a0d05
5 changed files with 34 additions and 10 deletions

View File

@@ -181,8 +181,6 @@ static void ReceiveThreadProc(void* context) {
}
if (!receivedDataFromPeer) {
// We've received data, so we can stop sending our ping packets
// as quickly, since we're now just keeping the NAT session open.
receivedDataFromPeer = 1;
Limelog("Received first audio packet after %d ms\n", waitingForAudioMs);
}