Skip to content

Commit

Permalink
Windows: fix system sleep & shutdown handling (part 2)
Browse files Browse the repository at this point in the history
  • Loading branch information
awawa-dev committed Jan 5, 2025
1 parent 705a1eb commit 57d366d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sources/led-drivers/net/ProviderUdpSSL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -187,10 +187,12 @@ bool ProviderUdpSSL::initNetwork()
}
});

#if (QT_VERSION >= QT_VERSION_CHECK(5, 15, 0))
connect(_socket, &QUdpSocket::errorOccurred, this, [&](QAbstractSocket::SocketError socketError) {
QString message = QString("Socket error nr: %1").arg(QString::number(socketError));
QUEUE_CALL_1(this, errorHandling, QString, message);
});
#endif

connect(_socket, &QUdpSocket::readyRead, this, [&](){
if (_dtls ==nullptr || _socket == nullptr || _socket->pendingDatagramSize() <= 0)
Expand Down

0 comments on commit 57d366d

Please sign in to comment.