kopia lustrzana https://gitlab.com/eliggett/wfview
"Hopefully" fix annoying UDP server crash on client disconnect!
rodzic
906f21855e
commit
a18d005cee
|
@ -714,7 +714,9 @@ void udpServer::audioReceived()
|
||||||
void udpServer::commonReceived(QList<CLIENT*>* l,CLIENT* current, QByteArray r)
|
void udpServer::commonReceived(QList<CLIENT*>* l,CLIENT* current, QByteArray r)
|
||||||
{
|
{
|
||||||
Q_UNUSED(l); // We might need it later!
|
Q_UNUSED(l); // We might need it later!
|
||||||
|
if (current == Q_NULLPTR || r.isNull()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
current->lastHeard = QDateTime::currentDateTime();
|
current->lastHeard = QDateTime::currentDateTime();
|
||||||
if (r.length() < 0x10)
|
if (r.length() < 0x10)
|
||||||
{
|
{
|
||||||
|
|
Ładowanie…
Reference in New Issue