]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/inspsocket.cpp
XHTML 1.1 spec validation and charset
[user/henk/code/inspircd.git] / src / inspsocket.cpp
index 4264700f54bd02cb6a7fe2c8942758cc2b7369ce..cc0368525f6626302ac1fcf053e16fd96995f607 100644 (file)
@@ -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