From: Leandro Lucarella Date: Sat, 27 Oct 2007 20:44:53 +0000 (-0300) Subject: Excecute the timer at startup if enabled. X-Git-Url: https://git.llucax.com/software/pymin.git/commitdiff_plain/85160d39ec00c396c0f07885f3744c501296f137?ds=sidebyside;hp=-c Excecute the timer at startup if enabled. --- 85160d39ec00c396c0f07885f3744c501296f137 diff --git a/pymin/eventloop.py b/pymin/eventloop.py index b6be5a1..86b8932 100644 --- a/pymin/eventloop.py +++ b/pymin/eventloop.py @@ -147,6 +147,7 @@ class EventLoop: # If we use a timer, we set up the signal if self.timer is not None: signal.signal(signal.SIGALRM, alarm_handler) + self.handle_timer() signal.alarm(self.timer) while True: try: