[svn r71] The fix for a problem raised by 'mark' in [sldev] help with beta-1; we never noticed this because every thread we started had a timer created in it.

This commit is contained in:
donovan.linden
2007-12-14 13:48:11 -05:00
parent c49670da8b
commit afd96c15b8

View File

@@ -215,6 +215,8 @@ class RunLoop(object):
del t[:last]
def cancel_timers(self, greenlet):
if greenlet not in self.timers_by_greenlet:
return
for timer in self.timers_by_greenlet[greenlet]:
if timer.seconds:
## If timer.seconds is 0, this isn't a timer, it's