소스 검색

Update TcpConnection.php

walkor 4 년 전
부모
커밋
ab9a28b03c
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  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);
     }