This commit is contained in:
mailchuck 2015-11-23 00:26:18 +01:00 committed by Peter Surda
parent 410c23e8c0
commit 36ddbd365e
1 changed files with 1 additions and 1 deletions

View File

@ -206,7 +206,7 @@ class uPnPThread(threading.Thread, StoppableThread):
for router in self.routers: for router in self.routers:
if router.extPort is None: if router.extPort is None:
self.createPortMapping(router) self.createPortMapping(router)
self.sock.shutdown(socket.SHUT.RDWR) self.sock.shutdown(socket.SHUT_RDWR)
self.sock.close() self.sock.close()
deleted = False deleted = False
for router in self.routers: for router in self.routers: