Skip to content

Commit

Permalink
Also delete connected attribute in AioConnection.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Jul 4, 2018
1 parent 52fc388 commit c8b8bc8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions irc/client_aio.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,11 +187,11 @@ def disconnect(self, message=""):
Arguments:
message -- Quit message.
"""
if not self.connected:
try:
del self.connected
except AttributeError:
return

self.connected = 0

self.quit(message)

self.transport.close()
Expand Down

0 comments on commit c8b8bc8

Please sign in to comment.