mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 12:55:33 +08:00
* discussion: https://dev.vatsim-germany.org/boards/22/topics/2027?r=2040#message-2040 * fixed bug with ATC station component, wrong signals for booked stations * booked stations loading to frequently (for each minor change such as online), changed to timestamp based concept * update booked stations with receiving ATIS/voiceroom to online * CDigestSignal class: new class and methods for collecting signals, avoiding too many signals - one of the cures for the performance issues * fixed bug found during testing, missing start for timers when connecting to network
This commit is contained in:
@@ -259,11 +259,12 @@ void MainWindow::ps_toggleNetworkConnection()
|
||||
this->ps_displayStatusMessageInGui(CStatusMessage::getInfoMessage("login in observer mode"));
|
||||
}
|
||||
msgs = this->getIContextNetwork()->connectToNetwork(static_cast<uint>(mode));
|
||||
this->startUpdateTimersWhenConnected();
|
||||
}
|
||||
else
|
||||
{
|
||||
// disconnect from network
|
||||
this->stopUpdateTimers(); // stop update timers, to avoid updates during disconnecting (a short time frame)
|
||||
this->stopUpdateTimersWhenDisconnected(); // stop update timers, to avoid updates during disconnecting (a short time frame)
|
||||
if (this->m_contextAudioAvailable) this->getIContextAudio()->leaveAllVoiceRooms();
|
||||
msgs = this->getIContextNetwork()->disconnectFromNetwork();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user