We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36da619 commit bbe4444Copy full SHA for bbe4444
src/support/socket.h
@@ -262,17 +262,17 @@ class Socket {
262
0) {
263
return port;
264
} else {
265
- LOG(WARNING) << "Bind failed to " << host << ":" << port;
266
- }
267
#if defined(_WIN32)
268
- if (WSAGetLastError() != WSAEADDRINUSE) {
269
- Socket::Error("TryBindHost");
270
+ if (WSAGetLastError() != WSAEADDRINUSE) {
+ Socket::Error("TryBindHost");
+ }
271
#else
272
- if (errno != EADDRINUSE) {
273
274
+ if (errno != EADDRINUSE) {
275
#endif
+ LOG(WARNING) << "Bind failed to " << host << ":" << port;
276
}
277
return -1;
278
0 commit comments