]> 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
index be396a87d6ba90d4d9e10b8a90facd0bd443aa0d..11095fb766cf8899e0748c2703fa166b497c58eb 100755 (executable)
--- 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]