소스 검색

fix pause

walkor 10 년 전
부모
커밋
b2fac77e65
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Workerman/Connection/TcpConnection.php

+ 1 - 1
Workerman/Connection/TcpConnection.php

@@ -343,7 +343,7 @@ class TcpConnection extends ConnectionInterface
            if($this->protocol)
            {
                $parser = $this->protocol;
-               while($this->_recvBuffer)
+               while($this->_recvBuffer && !$this->_isPaused)
                {
                    // 当前包的长度已知
                    if($this->_currentPackageLength)