]> jfr.im git - irc/quakenet/qwebirc.git/blobdiff - run.py
Implement our own timeout mechanism as the Twisted stuff is really buggy.
[irc/quakenet/qwebirc.git] / run.py
diff --git a/run.py b/run.py
old mode 100644 (file)
new mode 100755 (executable)
index be396a8..11095fb
--- a/run.py
+++ b/run.py
@@ -1,5 +1,5 @@
 #!/usr/bin/env python
-# this entire thing is a hack
+# this entire thing is a hack and badly needs reimplementing
 DEFAULT_PORT = 9090
 
 from twisted.scripts.twistd import run
@@ -39,7 +39,9 @@ if not options.daemonise:
   args1.append("-n")
 if options.debug:
   args1.append("-b")
-args1+=["--reactor", options.reactor]
+
+if options.reactor != DEFAULT_REACTOR:
+  args1+=["--reactor", options.reactor]
 if options.logfile:
   args+=["--logfile", options.logfile]