mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-12 23:35:33 +08:00
Fixes 2,4,6 refs #287
https://dev.vatsim-germany.org/issues/287#note-14
This commit is contained in:
@@ -292,12 +292,13 @@ namespace BlackCore
|
||||
} // for each
|
||||
|
||||
// this part needs to be synchronized
|
||||
this->m_lock.lockForWrite();
|
||||
this->m_updateTimestamp = updateTimestampFromFile;
|
||||
this->m_aircrafts = aircrafts;
|
||||
this->m_atcStations = atcStations;
|
||||
this->m_voiceServers = voiceServers;
|
||||
this->m_lock.unlock();
|
||||
{
|
||||
QWriteLocker wl(&this->m_lock);
|
||||
this->m_updateTimestamp = updateTimestampFromFile;
|
||||
this->m_aircrafts = aircrafts;
|
||||
this->m_atcStations = atcStations;
|
||||
this->m_voiceServers = voiceServers;
|
||||
}
|
||||
} // read success
|
||||
|
||||
nwReply->close();
|
||||
|
||||
Reference in New Issue
Block a user