Update udpserver.cpp

audioplugins
Phil Taylor 2021-06-11 10:45:04 +01:00
rodzic 013df134f9
commit 9fe71b4495
1 zmienionych plików z 1 dodań i 2 usunięć

Wyświetl plik

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