]> git.tdb.fi Git - libs/net.git/commitdiff
Clear connected flag in Socket::close
authorMikko Rasa <tdb@tdb.fi>
Mon, 15 Dec 2008 12:05:14 +0000 (12:05 +0000)
committerMikko Rasa <tdb@tdb.fi>
Mon, 15 Dec 2008 12:05:14 +0000 (12:05 +0000)
source/socket.cpp

index f24bcbe7533d7c95a961e5c35bf10f996c16e7c8..6db6271a8a2710b01588a7ac9de4fa363cbe1727 100644 (file)
@@ -135,6 +135,7 @@ void Socket::close()
        ::close(handle);
 #endif
        handle=MSP_NET_INVALID_SOCKET_HANDLE;
+       connected=false;
        signal_closed.emit();
 
        delete local_addr;