mirror of
https://github.com/g4klx/MMDVMHost
synced 2025-12-21 23:45:49 +08:00
Revert the move of the timer.
This commit is contained in:
@@ -470,7 +470,7 @@ void CDStarControl::writeNetwork()
|
|||||||
|
|
||||||
m_netTimeoutTimer.start();
|
m_netTimeoutTimer.start();
|
||||||
m_packetTimer.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_ackTimer.stop();
|
||||||
|
|
||||||
m_lastFrameValid = false;
|
m_lastFrameValid = false;
|
||||||
@@ -501,11 +501,6 @@ void CDStarControl::writeNetwork()
|
|||||||
m_display->writeDStar((char*)my1, (char*)my2, (char*)your, "N", (char*) " ");
|
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);
|
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) {
|
} else if (type == TAG_EOT) {
|
||||||
if (m_netState != RS_NET_AUDIO)
|
if (m_netState != RS_NET_AUDIO)
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user