Revert the move of the timer.

This commit is contained in:
Jonathan Naylor 2016-09-29 20:03:54 +01:00
parent dd73ccb578
commit 21a786329e

View file

@ -470,7 +470,7 @@ void CDStarControl::writeNetwork()
m_netTimeoutTimer.start();
m_packetTimer.start();
//m_elapsed.start(); // commented out and placed lower down due to delay introduced somewhere below here.
m_elapsed.start();
m_ackTimer.stop();
m_lastFrameValid = false;
@ -501,11 +501,6 @@ void CDStarControl::writeNetwork()
m_display->writeDStar((char*)my1, (char*)my2, (char*)your, "N", (char*) " ");
LogMessage("D-Star, received network header from %8.8s/%4.4s to %8.8s", my1, my2, your);
}
// Something just above here introduces a large delay forcing erroneous(?) insertion of silence packets.
// Starting the elapsed timer here instead of the commented out position above solves that.
m_elapsed.start();
} else if (type == TAG_EOT) {
if (m_netState != RS_NET_AUDIO)
return;