Procházet zdrojové kódy

bugfix: missing argument calling socker.shutdown

digital před 7 roky
rodič
revize
ceeebc2e9b
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2 1
      network/__init__.py

+ 2 - 1
network/__init__.py

@@ -306,7 +306,8 @@ class Server(object):
         # check if there is actually a socket. if the shutdown method is
         # check if there is actually a socket. if the shutdown method is
         # executed before the start method, there is no socket.
         # executed before the start method, there is no socket.
         if self.socket:
         if self.socket:
-            error_handler(self.socket.shutdown,log_text="socket shutdown")
+            error_handler(self.socket.shutdown,socket.SHUT_RDWR,
+                log_text="socket shutdown")
             error_handler(self.socket.close,log_text="socket close")
             error_handler(self.socket.close,log_text="socket close")
 
 
     def start(self):
     def start(self):