Alternate, WinSock friendly reporting for host lookup failures.

This commit is contained in:
James Turner
2011-09-16 16:43:09 +01:00
parent 403b7c14aa
commit 4566bece90

View File

@@ -210,9 +210,8 @@ NetChannel::handleResolve()
}
if (!addr.isValid()) {
// I'm absuing ENETUNREACH, all we do is pass this to strerror
// in handleError
handleError (ENETUNREACH);
SG_LOG(SG_IO, SG_WARN, "Network: host lookup failed:" << host);
handleError (0);
close();
return -1;
}