handle for interafe problems on windows

This commit is contained in:
Mykola Baibuz 2025-03-27 22:53:06 +02:00
parent 26994c21b1
commit 517930dd22
2 changed files with 3 additions and 3 deletions

View file

@ -13,14 +13,11 @@
#include <QJsonObject>
#include <QJsonValue>
#include <QStandardPaths>
#include <QThread>
#include "leakdetector.h"
#include "logger.h"
#include "daemon/daemonerrors.h"
#include "core/ipcclient.h"
#include "protocols/protocols_defs.h"
// How many times do we try to reconnect.

View file

@ -161,6 +161,9 @@ void WindowsPingSender::sendPing(const QHostAddress& dest, quint16 sequence) {
DWORD status = GetLastError();
if (status != ERROR_IO_PENDING) {
QString errmsg = WindowsUtils::getErrorMessage();
if (status == ERROR_INVALID_NETNAME) {
emit criticalPingError();
}
logger.error() << "failed to start Code: " << status
<< " Message: " << errmsg
<< " dest:" << logger.sensitive(dest.toString());