Skip to content

Commit fa01ea7

Browse files
3.4.0适配swoole4.0.3
1 parent e8b3632 commit fa01ea7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Server/Coroutine/CoroutineBase.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,8 @@ public function recv(callable $fuc = null)
127127
$this->chan = new \chan();
128128
}
129129
$result = $this->chan->pop($this->MAX_TIMERS);
130-
if($result!==false){
130+
//没有错误码就是正常的
131+
if($this->chan->errCode==0){
131132
$result = $this->getResult($result);
132133
}else{//超时
133134
//有降级函数则访问降级函数

0 commit comments

Comments
 (0)