Remove stack depth warnings
- I was never able to trigger them
This commit is contained in:
parent
e9edf70d3a
commit
dc5a91f326
|
@ -41,14 +41,13 @@ class AdvancedDispatcher(asyncore.dispatcher):
|
||||||
if not self.connected:
|
if not self.connected:
|
||||||
return
|
return
|
||||||
maxLoop = 20
|
maxLoop = 20
|
||||||
try:
|
# try:
|
||||||
sys._getframe(200)
|
# sys._getframe(200)
|
||||||
logger.error("Stack depth warning")
|
# logger.error("Stack depth warning")
|
||||||
except ValueError:
|
# except ValueError:
|
||||||
pass
|
# pass
|
||||||
while maxLoop > 0:
|
while maxLoop > 0:
|
||||||
try:
|
try:
|
||||||
# print "Trying to handle state \"%s\"" % (self.state)
|
|
||||||
if getattr(self, "state_" + str(self.state))() is False:
|
if getattr(self, "state_" + str(self.state))() is False:
|
||||||
break
|
break
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
|
|
|
@ -25,11 +25,11 @@ class ReceiveQueueThread(threading.Thread, StoppableThread):
|
||||||
while not self._stopped and state.shutdown == 0:
|
while not self._stopped and state.shutdown == 0:
|
||||||
if lastprinted < int(time.time()):
|
if lastprinted < int(time.time()):
|
||||||
lastprinted = int(time.time())
|
lastprinted = int(time.time())
|
||||||
try:
|
# try:
|
||||||
sys._getframe(200)
|
# sys._getframe(200)
|
||||||
logger.error("Stack depth warning")
|
# logger.error("Stack depth warning")
|
||||||
except ValueError:
|
# except ValueError:
|
||||||
pass
|
# pass
|
||||||
processed = 0
|
processed = 0
|
||||||
for i in BMConnectionPool().inboundConnections.values() + BMConnectionPool().outboundConnections.values():
|
for i in BMConnectionPool().inboundConnections.values() + BMConnectionPool().outboundConnections.values():
|
||||||
if self._stopped:
|
if self._stopped:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user