mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 00:16:51 +08:00
refs #308 improved client thread handling and cleanup
Threads are now waiting for closure
This commit is contained in:
@@ -58,8 +58,6 @@ namespace BlackSimPlugin
|
||||
|
||||
void CFs9Client::disconnectFrom()
|
||||
{
|
||||
qDebug() << "Disconnecting...";
|
||||
killTimer(m_timerId);
|
||||
closeConnection();
|
||||
}
|
||||
|
||||
@@ -258,7 +256,7 @@ namespace BlackSimPlugin
|
||||
m_timerId = startTimer(m_updateInterval.value(CTimeUnit::ms()));
|
||||
|
||||
m_clientStatus = Connected;
|
||||
emit statusChanged(m_clientStatus);
|
||||
emit statusChanged(m_callsign, m_clientStatus);
|
||||
|
||||
return hr;
|
||||
}
|
||||
@@ -276,7 +274,7 @@ namespace BlackSimPlugin
|
||||
}
|
||||
|
||||
m_clientStatus = Disconnected;
|
||||
emit statusChanged(m_clientStatus);
|
||||
emit statusChanged(m_callsign, m_clientStatus);
|
||||
return hr;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user