Explorar el Código

Update TcpConnection.php

walkor hace 4 años
padre
commit
ab9a28b03c
Se han modificado 1 ficheros con 3 adiciones y 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);
     }