diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-07-10 21:30:30 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-07-10 21:30:30 +0000 |
commit | be2cf7a99fbf3c2fd1139608fe2b3cc5cdbd2daf (patch) | |
tree | b290513fc07ba7e44dd268d0a07037be07e1aa5b /src/inspsocket.cpp | |
parent | 184b6220255ec89c221bff152a62450f1a137340 (diff) |
Move logging further up in inspsocket so we get the right error for bind failure
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4309 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/inspsocket.cpp')
-rw-r--r-- | src/inspsocket.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/inspsocket.cpp b/src/inspsocket.cpp index 4264700f5..cc0368525 100644 --- a/src/inspsocket.cpp +++ b/src/inspsocket.cpp @@ -73,12 +73,12 @@ InspSocket::InspSocket(const std::string &ahost, int aport, bool listening, unsi { if (!BindSocket(this->fd,this->client,this->server,aport,(char*)ahost.c_str())) { + log(DEBUG,"BindSocket() error %s",strerror(errno)); this->Close(); this->fd = -1; this->state = I_ERROR; this->OnError(I_ERR_BIND); this->ClosePending = true; - log(DEBUG,"BindSocket() error %s",strerror(errno)); return; } else |