summaryrefslogtreecommitdiff
path: root/pysnmp/carrier/asyncore/dispatch.py
diff options
context:
space:
mode:
Diffstat (limited to 'pysnmp/carrier/asyncore/dispatch.py')
-rw-r--r--pysnmp/carrier/asyncore/dispatch.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/pysnmp/carrier/asyncore/dispatch.py b/pysnmp/carrier/asyncore/dispatch.py
index a88bd673..4cdd61bf 100644
--- a/pysnmp/carrier/asyncore/dispatch.py
+++ b/pysnmp/carrier/asyncore/dispatch.py
@@ -16,7 +16,6 @@ from pysnmp.error import PySnmpError
class AsyncoreDispatcher(AbstractTransportDispatcher):
def __init__(self):
self.__sockMap = {} # use own map for MT safety
- self.timeout = 0.5
AbstractTransportDispatcher.__init__(self)
def getSocketMap(self):
@@ -42,7 +41,7 @@ class AsyncoreDispatcher(AbstractTransportDispatcher):
def runDispatcher(self, timeout=0.0):
while self.jobsArePending() or self.transportsAreWorking():
try:
- loop(timeout and timeout or self.timeout,
+ loop(timeout or self.getTimerResolution(),
use_poll=True, map=self.__sockMap, count=1)
except KeyboardInterrupt:
raise