summaryrefslogtreecommitdiff
path: root/src/socket.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-15 21:25:17 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-15 21:25:17 +0000
commit0a44bf8490fe7adc0d6b7e00a41ad702d800040e (patch)
treec745db27cb5c86ed158db8e590ddf472b09d89b8 /src/socket.cpp
parentefe386c9fb8480f69066edf4da84f84504bc9320 (diff)
Extra error logging
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3225 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/socket.cpp')
-rw-r--r--src/socket.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/socket.cpp b/src/socket.cpp
index 21e7eff3d..7e36d8fb8 100644
--- a/src/socket.cpp
+++ b/src/socket.cpp
@@ -173,7 +173,7 @@ bool InspSocket::DoConnect()
flags = fcntl(this->fd, F_GETFL, 0);
fcntl(this->fd, F_SETFL, flags | O_NONBLOCK);
- if(connect(this->fd, (sockaddr*)&this->addr,sizeof(this->addr)) == -1)
+ if (connect(this->fd, (sockaddr*)&this->addr,sizeof(this->addr)) == -1)
{
if (errno != EINPROGRESS)
{
@@ -188,6 +188,7 @@ bool InspSocket::DoConnect()
ServerInstance->SE->AddFd(this->fd,false,X_ESTAB_MODULE);
socket_ref[this->fd] = this;
this->SetQueues(this->fd);
+ log(DEBUG,"Returning true from InspSocket::DoConnect");
return true;
}