diff options
author | Martin Abente <martin.abente.lahaye@gmail.com> | 2011-01-28 13:28:26 (GMT) |
---|---|---|
committer | Martin Abente <martin.abente.lahaye@gmail.com> | 2011-01-28 13:28:26 (GMT) |
commit | dab1d95f32f433f23e089da51d435ba9716562bf (patch) | |
tree | 0713bbe62c928b835d2d8a0bb480f0df9f79716a | |
parent | fd5f45995d9262130c1f0b4af8d8e4061174875d (diff) |
fix threading bug
Importing threading too early.
More information at:
http://docs.python.org/library/threading.html#importing-in-threaded-code
-rwxr-xr-x | fbdaemon.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fbdaemon.py b/fbdaemon.py index 7e96177..7fe0a58 100755 --- a/fbdaemon.py +++ b/fbdaemon.py @@ -18,11 +18,11 @@ # http://www.jejik.com/articles/2007/02/a_simple_unix_linux_daemon_in_python/ import sys -import fbserver from daemon import Daemon class FeedbackDaemon(Daemon): def run(self): + import fbserver fbserver.listen() if __name__ == "__main__": |