Report when users are disconnected by the watchdog

merge-requests/5/head
Phil Taylor 2021-06-11 10:42:59 +01:00
rodzic 721d931be4
commit 013df134f9
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -1239,6 +1239,8 @@ void udpServer::watchdog(QList<CLIENT*>* l, CLIENT* c)
{
QDateTime now = QDateTime::currentDateTime();
emit haveNetworkStatus(QString("<pre>Server connections: Control:%1 CI-V:%2 Audio:%3</pre>").arg(controlClients.size()).arg(civClients.size()).arg(audioClients.size()));
if (c->lastHeard.secsTo(now) > STALE_CONNECTION)
{
qInfo(logUdpServer()) << c->ipAddress.toString() << "(" << c->type << "): Deleting stale connection ";