Explorar o código

Update TcpConnection.php

walkor %!s(int64=4) %!d(string=hai) anos
pai
achega
ab9a28b03c
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      Connection/TcpConnection.php

+ 3 - 0
Connection/TcpConnection.php

@@ -469,6 +469,9 @@ class TcpConnection extends ConnectionInterface
      */
     public function getLocalAddress()
     {
+        if (!\is_resource($this->_socket)) {
+            return '';
+        }
         return (string)@\stream_socket_get_name($this->_socket, false);
     }