summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorelie <elie>2011-06-24 06:33:52 +0000
committerelie <elie>2011-06-24 06:33:52 +0000
commite53069ccdf52b5699b88f1f5d04ec521f893ac41 (patch)
treed5499d42c6bd73694e7e07cef164bc9bea60da29
parentb048e26087f763a4dcf7c29dcf603869dbfc9b51 (diff)
downloadpysnmp-e53069ccdf52b5699b88f1f5d04ec521f893ac41.tar.gz
fix to reactor shutdown condition
-rw-r--r--pysnmp/carrier/twisted/dispatch.py2
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()