diff --git a/src/upnp.py b/src/upnp.py index c6db487b..24ca3aeb 100644 --- a/src/upnp.py +++ b/src/upnp.py @@ -206,8 +206,9 @@ class uPnPThread(StoppableThread): SSDP_ST = "urn:schemas-upnp-org:device:InternetGatewayDevice:1" def __init__(self): - super(uPnPThread, self).__init__(name="uPnPThread") - self.extPort = BMConfigParser().safeGetInt('bitmessagesettings', 'extport', default=None) + super(uPnPThread, self).__init__(None, name="uPnPThread") + self.extPort = BMConfigParser().safeGetInt( + 'bitmessagesettings', 'extport', None) self.localIP = self.getLocalIP() self.routers = [] self.sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)