From 721783bae67cd78ce8c171f8e87d5b4ea6836c51 Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Thu, 6 Nov 2014 03:49:31 +0100 Subject: [Plugin] Don't use reconnection if account was logged 2 --- module/plugins/Plugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'module/plugins/Plugin.py') diff --git a/module/plugins/Plugin.py b/module/plugins/Plugin.py index a74a95e78..cdf0f147d 100644 --- a/module/plugins/Plugin.py +++ b/module/plugins/Plugin.py @@ -289,8 +289,8 @@ class Plugin(Base): :param seconds: wait time in seconds :param reconnect: True if a reconnect would avoid wait time """ - if reconnect and not self.account: - self.wantReconnect = bool(reconnect) + if reconnect is not None: + self.wantReconnect = reconnect and not self.account self.pyfile.waitUntil = time() + int(seconds) + 1 -- cgit v1.2.3