handle for interafe problems on windows
This commit is contained in:
parent
26994c21b1
commit
517930dd22
2 changed files with 3 additions and 3 deletions
|
@ -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