Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
diff --git a/src/drivers/ b/src/drivers/
index c9e9d19f..08787fb4 100644
--- a/src/drivers/
+++ b/src/drivers/
@@ -223,7 +223,13 @@ class SocketDriver(drivers.IrcDriver, drivers.ServersMixin):
def connect(self, **kwargs):
self.reconnect(reset=False, **kwargs)
- def reconnect(self, wait=False, reset=True):
+ def reconnect(self, **kwargs):
+ self._reconnect_thread = world.SupyThread(
+ target=self._reconnect, kwargs=kwargs,
+ name='connect_to_%s' % self.irc)
+ self._reconnect_thread.start()
+ def _reconnect(self, wait=False, reset=True):
self._attempt += 1
self.nextReconnectTime = None
if self.connected:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.