"Hopefully" fix annoying UDP server crash on client disconnect!

merge-requests/4/head
Phil Taylor 2021-05-22 00:52:01 +01:00
rodzic 906f21855e
commit a18d005cee
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -714,7 +714,9 @@ void udpServer::audioReceived()
void udpServer::commonReceived(QList<CLIENT*>* l,CLIENT* current, QByteArray r)
{
Q_UNUSED(l); // We might need it later!
if (current == Q_NULLPTR || r.isNull()) {
return;
}
current->lastHeard = QDateTime::currentDateTime();
if (r.length() < 0x10)
{