]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/inspsocket.cpp
Move nick change code out of cmd_nick; fixes double-invocation of hooks and may elimi...
[user/henk/code/inspircd.git] / src / inspsocket.cpp
index 5099df88201016c68a2e68745604ba218c052f24..652799b9cd640244812087e0bb326bcf43469a37 100644 (file)
@@ -118,11 +118,6 @@ BufferedSocketError BufferedSocket::BeginConnect(const irc::sockets::sockaddrs&
 
 void StreamSocket::Close()
 {
-       /* Save this, so we dont lose it,
-        * otherise on failure, error messages
-        * might be inaccurate.
-        */
-       int save = errno;
        if (this->fd > -1)
        {
                if (IOHook)
@@ -142,7 +137,6 @@ void StreamSocket::Close()
                ServerInstance->SE->Close(this);
                fd = -1;
        }
-       errno = save;
 }
 
 CullResult StreamSocket::cull()