diff options
author | elie <elie> | 2011-06-24 06:33:52 +0000 |
---|---|---|
committer | elie <elie> | 2011-06-24 06:33:52 +0000 |
commit | e53069ccdf52b5699b88f1f5d04ec521f893ac41 (patch) | |
tree | d5499d42c6bd73694e7e07cef164bc9bea60da29 | |
parent | b048e26087f763a4dcf7c29dcf603869dbfc9b51 (diff) | |
download | pysnmp-e53069ccdf52b5699b88f1f5d04ec521f893ac41.tar.gz |
fix to reactor shutdown condition
-rw-r--r-- | pysnmp/carrier/twisted/dispatch.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pysnmp/carrier/twisted/dispatch.py b/pysnmp/carrier/twisted/dispatch.py index 6bc4554..df4d1e0 100644 --- a/pysnmp/carrier/twisted/dispatch.py +++ b/pysnmp/carrier/twisted/dispatch.py @@ -52,5 +52,5 @@ class TwistedDispatcher(AbstractTransportDispatcher): self.__transportCount = self.__transportCount - 1 # The last transport has been removed, stop the timeout - if self.__transportCount > 0 and self.loopingcall.running: + if self.__transportCount == 0 and self.loopingcall.running: self.loopingcall.stop() |