Don't reset attributes twice on disconnect.

This commit is contained in:
Shiz 2014-02-21 04:55:17 +01:00
parent 65604e20da
commit 71b8870522
1 changed files with 0 additions and 2 deletions

View File

@ -324,8 +324,6 @@ class BasicClient:
self.join(channel)
def on_disconnect(self, expected):
self._reset_attributes()
if not expected:
# Unexpected disconnect. Reconnect?
if self.RECONNECT_ON_ERROR and (self.RECONNECT_MAX_ATTEMPTS is None or self._reconnect_attempts < self.RECONNECT_MAX_ATTEMPTS):