diff options
Diffstat (limited to 'src/connection.cpp')
-rw-r--r-- | src/connection.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/connection.cpp b/src/connection.cpp index c003f9ff7..2ab984332 100644 --- a/src/connection.cpp +++ b/src/connection.cpp @@ -140,6 +140,7 @@ bool ircd_connector::MakeOutboundConnection(char* host, int port) if(connect(this->fd, (sockaddr*)&this->addr,sizeof(this->addr))) { WriteOpers("connect() failed for %s",host); + RemoveServer(this->servername.c_str()); return false; } int flags = fcntl(this->fd, F_GETFL, 0); @@ -153,6 +154,7 @@ bool ircd_connector::MakeOutboundConnection(char* host, int port) else { WriteOpers("socket() failed!"); + RemoveServer(this->servername.c_str()); } return false; |