Эх сурвалжийг харах

baseWrite is_resource check

walkor 10 жил өмнө
parent
commit
411964ebea

+ 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();