From c5ce2e36d5df40f5f6d79eaa12074d1dd866bea2 Mon Sep 17 00:00:00 2001 From: Dmitri Bogomolov <4glitch@gmail.com> Date: Wed, 31 Jul 2019 18:20:09 +0300 Subject: [PATCH] shared.extPort is obsolete --- src/upnp.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/upnp.py b/src/upnp.py index 6430ecfe..da075c65 100644 --- a/src/upnp.py +++ b/src/upnp.py @@ -17,7 +17,6 @@ from urlparse import urlparse from xml.dom.minidom import Document, parseString import queues -import shared import state import tr from bmconfigparser import BMConfigParser @@ -286,7 +285,6 @@ class uPnPThread(threading.Thread, StoppableThread): if router.extPort is not None: deleted = True self.deletePortMapping(router) - shared.extPort = None if deleted: queues.UISignalQueue.put(('updateStatusBar', tr._translate("MainWindow", 'UPnP port mapping removed'))) logger.debug("UPnP thread done") @@ -333,7 +331,6 @@ class uPnPThread(threading.Thread, StoppableThread): self.localPort, extPort) router.AddPortMapping(extPort, self.localPort, localIP, 'TCP', 'BitMessage') - shared.extPort = extPort self.extPort = extPort BMConfigParser().set('bitmessagesettings', 'extport', str(extPort)) BMConfigParser().save()