mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-20 04:25:42 +08:00
refs #849, signal when network data are received, for statistics
checks what data we support vs. data we have received
This commit is contained in:
committed by
Mathew Sutcliffe
parent
b35bbd8b81
commit
3fb374cc75
@@ -250,12 +250,21 @@ namespace BlackCore
|
|||||||
if (m_status != status)
|
if (m_status != status)
|
||||||
{
|
{
|
||||||
qSwap(m_status, status);
|
qSwap(m_status, status);
|
||||||
emit connectionStatusChanged(convertConnectionStatus(status), convertConnectionStatus(m_status));
|
if (m_status == vatStatusConnected)
|
||||||
|
{
|
||||||
|
m_server.setConnectedSinceNow();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
m_server.markAsDisconnected();
|
||||||
|
}
|
||||||
|
|
||||||
if (isDisconnected())
|
if (isDisconnected())
|
||||||
{
|
{
|
||||||
stopPositionTimers();
|
stopPositionTimers();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
emit connectionStatusChanged(convertConnectionStatus(status), convertConnectionStatus(m_status));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user