shared.extPort is obsolete

This commit is contained in:
Dmitri Bogomolov 2019-07-31 18:20:09 +03:00
parent 9992626438
commit c5ce2e36d5
Signed by untrusted user: g1itch
GPG Key ID: 720A756F18DEED13
1 changed files with 0 additions and 3 deletions

View File

@ -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
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):
router.AddPortMapping(extPort, self.localPort, localIP, 'TCP', 'BitMessage')
shared.extPort = extPort
self.extPort = extPort
BMConfigParser().set('bitmessagesettings', 'extport', str(extPort))