Explorar o código

baseWrite is_resource check

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

+ 1 - 1
Connection/TcpConnection.php

@@ -523,7 +523,7 @@ class TcpConnection extends ConnectionInterface
         }
         else
         {
-           if(feof($this->_socket))
+           if(feof($this->_socket) || !is_resource($this->_socket))
            {
                self::$statistics['send_fail']++;
                $this->destroy();