mirror of
https://github.com/anope/anope.git
synced 2026-07-06 22:43:12 +02:00
Cleaned up some of the logger code which fixes not logging debug logs to files etc when debug is enabled, and some other small things
This commit is contained in:
+2
-2
@@ -282,10 +282,10 @@ ClientSocket *SocketIO::Accept(ListenSocket *s)
|
||||
int newsock = accept(s->GetFD(), &conaddr.sa, &size);
|
||||
|
||||
#ifndef INVALID_SOCKET
|
||||
# define INVALID_SOCKET 0
|
||||
# define INVALID_SOCKET -1
|
||||
#endif
|
||||
|
||||
if (newsock > 0 && newsock != INVALID_SOCKET)
|
||||
if (newsock >= 0 && newsock != INVALID_SOCKET)
|
||||
return s->OnAccept(newsock, conaddr);
|
||||
else
|
||||
throw SocketException("Unable to accept connection: " + Anope::LastError());
|
||||
|
||||
Reference in New Issue
Block a user