This commit is contained in:
mailchuck 2015-11-23 00:26:18 +01:00 committed by Peter Surda
parent 410c23e8c0
commit 36ddbd365e

View File

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