From 0a44bf8490fe7adc0d6b7e00a41ad702d800040e Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 15 Feb 2006 21:25:17 +0000 Subject: Extra error logging git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3225 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/socket.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/socket.cpp') 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; } -- cgit v1.2.3