Fix super() call in uPnPThread

This commit is contained in:
Dmitri Bogomolov 2021-06-09 17:19:30 +03:00
parent ef5575aa63
commit ee97277d5c
Signed by untrusted user: g1itch
GPG Key ID: 720A756F18DEED13

View File

@ -206,8 +206,9 @@ class uPnPThread(StoppableThread):
SSDP_ST = "urn:schemas-upnp-org:device:InternetGatewayDevice:1" SSDP_ST = "urn:schemas-upnp-org:device:InternetGatewayDevice:1"
def __init__(self): def __init__(self):
super(uPnPThread, self).__init__(name="uPnPThread") super(uPnPThread, self).__init__(None, name="uPnPThread")
self.extPort = BMConfigParser().safeGetInt('bitmessagesettings', 'extport', default=None) self.extPort = BMConfigParser().safeGetInt(
'bitmessagesettings', 'extport', None)
self.localIP = self.getLocalIP() self.localIP = self.getLocalIP()
self.routers = [] self.routers = []
self.sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) self.sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)