From 4ebe6b095e66caa5764e08486aeac46b32df0866 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Sun, 1 Aug 2010 18:57:18 +0200 Subject: wait fix --- module/plugins/Plugin.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'module/plugins/Plugin.py') diff --git a/module/plugins/Plugin.py b/module/plugins/Plugin.py index e3b1b3299..de29dfc4e 100644 --- a/module/plugins/Plugin.py +++ b/module/plugins/Plugin.py @@ -146,8 +146,9 @@ class Plugin(object): def wait(self): """ waits the time previously set """ self.waiting = True + self.pyfile.setStatus("waiting") - while self.pyfile.waitUntil < time(): + while self.pyfile.waitUntil > time(): self.thread.m.reconnecting.wait(2) if self.pyfile.abort: raise Abort @@ -156,6 +157,7 @@ class Plugin(object): raise Reconnect self.waiting = False + self.pyfile.setStatus("starting") def fail(self, reason): """ fail and give reason """ -- cgit v1.2.3