From 57d366d98165027bf4e95798d8d2f472381bca3e Mon Sep 17 00:00:00 2001 From: Awawa <69086569+awawa-dev@users.noreply.github.com> Date: Sun, 5 Jan 2025 22:56:07 +0100 Subject: [PATCH] Windows: fix system sleep & shutdown handling (part 2) --- sources/led-drivers/net/ProviderUdpSSL.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sources/led-drivers/net/ProviderUdpSSL.cpp b/sources/led-drivers/net/ProviderUdpSSL.cpp index 9801c28b..850f7648 100644 --- a/sources/led-drivers/net/ProviderUdpSSL.cpp +++ b/sources/led-drivers/net/ProviderUdpSSL.cpp @@ -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)