1
0
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:
Adam
2011-06-20 23:25:46 -04:00
parent a3d0ab3d09
commit 2667f9046e
4 changed files with 37 additions and 65 deletions
+2 -2
View File
@@ -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());