handle for interafe problems on windows
This commit is contained in:
parent
26994c21b1
commit
517930dd22
2 changed files with 3 additions and 3 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue