refs #308 improved client thread handling and cleanup

Threads are now waiting for closure
This commit is contained in:
Roland Winklmeier
2014-09-02 20:37:58 +02:00
parent bd8eba6913
commit b00d67e90c
2 changed files with 9 additions and 15 deletions

View File

@@ -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;
}
}