removed debugging code whice prevented mainLoop from being re-entered more than 10 times

This commit is contained in:
Denis Bilenko
2008-10-10 16:09:33 +07:00
parent 058d21e672
commit 121c8d313a

View File

@@ -52,7 +52,6 @@ class Hub:
assert Hub.state==0, ('This hub can only be instantiated once', Hub.state)
Hub.state = 1
self.greenlet = None
self.errcount = 0
def switch(self):
if not self.greenlet:
@@ -74,10 +73,6 @@ class Hub:
if Hub.state == 1:
reactor.startRunning(installSignalHandlers=installSignalHandlers)
if self.errcount > 10: # XXX remove it or make disableable
import os
os._exit(1)
self.errcount += 1
try:
self.mainLoop(reactor)
#except: