summaryrefslogtreecommitdiff
path: root/pysnmp/carrier/asyncio
diff options
context:
space:
mode:
Diffstat (limited to 'pysnmp/carrier/asyncio')
-rw-r--r--pysnmp/carrier/asyncio/dispatch.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pysnmp/carrier/asyncio/dispatch.py b/pysnmp/carrier/asyncio/dispatch.py
index 4365f792..0955fac5 100644
--- a/pysnmp/carrier/asyncio/dispatch.py
+++ b/pysnmp/carrier/asyncio/dispatch.py
@@ -71,13 +71,13 @@ class AsyncioDispatcher(AbstractTransportDispatcher):
AbstractTransportDispatcher.registerTransport(
self, tDomain, transport
)
- self.__transportCount = self.__transportCount + 1
+ self.__transportCount += 1
def unregisterTransport(self, tDomain):
t = AbstractTransportDispatcher.getTransport(self, tDomain)
if t is not None:
AbstractTransportDispatcher.unregisterTransport(self, tDomain)
- self.__transportCount = self.__transportCount - 1
+ self.__transportCount -= 1
# The last transport has been removed, stop the timeout
if self.__transportCount == 0 and not self.loopingcall.done():