Add a connected state for socket
This commit is contained in:
parent
1c1139df9f
commit
302add96ca
2 changed files with 8 additions and 4 deletions
|
|
@ -197,7 +197,7 @@ class IRCServer(SocketServer):
|
|||
return False
|
||||
|
||||
def _close(self):
|
||||
if self.socket is not None: self.write("QUIT")
|
||||
if self.connected: self.write("QUIT")
|
||||
return SocketServer._close(self)
|
||||
|
||||
def read(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue