Fix reconnection method

The reconnect method is on the connection object, not the bot or
client objects.

See http://paste.openstack.org/show/481770/

Change-Id: I14856c0c451e51973e9b062cb9b4f35362cb3766
This commit is contained in:
Joshua Hesketh 2015-12-14 18:17:49 +11:00
parent f907ae7054
commit d48b1bc417
1 changed files with 1 additions and 1 deletions

View File

@ -117,7 +117,7 @@ class GerritBot(irc.bot.SingleServerIRCBot):
time.sleep(0.5)
except Exception:
self.log.exception('Exception sending message:')
self.reconnect()
self.connection.reconnect()
class Gerrit(threading.Thread):