diff options
author | 2014-11-06 03:49:31 +0100 | |
---|---|---|
committer | 2014-11-06 03:49:31 +0100 | |
commit | 721783bae67cd78ce8c171f8e87d5b4ea6836c51 (patch) | |
tree | aa1480232a00cf61e5320faf066784dfcea07598 /module | |
parent | Code cosmetics (diff) | |
download | pyload-721783bae67cd78ce8c171f8e87d5b4ea6836c51.tar.xz |
[Plugin] Don't use reconnection if account was logged 2
Diffstat (limited to 'module')
-rw-r--r-- | module/plugins/Plugin.py | 4 |
1 files changed, 2 insertions, 2 deletions
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 |