Merge PR #4408: FEAT(client): print extended error when QOSRemoveSocketFromFlow() fails

This commit is contained in:
Davide Beatrici 2020-08-12 18:21:22 +02:00 committed by GitHub
commit 83182a771d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -426,8 +426,10 @@ void ServerHandler::run() {
#ifdef Q_OS_WIN
if (hQoS) {
if (! QOSRemoveSocketFromFlow(hQoS, 0, dwFlowUDP, 0))
qWarning("ServerHandler: Failed to remove UDP from QoS");
if (!QOSRemoveSocketFromFlow(hQoS, 0, dwFlowUDP, 0)) {
qWarning("ServerHandler: Failed to remove UDP from QoS. QOSRemoveSocketFromFlow() failed with error %u!", GetLastError());
}
dwFlowUDP = 0;
}
#endif