walkor 10 лет назад
Родитель
Сommit
afe680fc77
1 измененных файлов с 4 добавлено и 4 удалено
  1. 4 4
      Workerman/Connection/TcpConnection.php

+ 4 - 4
Workerman/Connection/TcpConnection.php

@@ -542,12 +542,12 @@ class TcpConnection extends ConnectionInterface
         }
         else
         {
+            if($data !== null)
+            {
+                $this->send($data);
+            }
             $this->_status = self::STATUS_CLOSING;
         }
-        if($data !== null)
-        {
-            $this->send($data);
-        }
         if($this->_sendBuffer === '')
         {
            $this->destroy();