From 5644fd234bf0fa50568d253dd9291e72e84e9599 Mon Sep 17 00:00:00 2001 From: chunhei2008 Date: Sat, 16 Apr 2022 08:46:43 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20swoole=20client?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复 swoole client starRecvCo 设置了exception callback 时会死循环 ✅ Closes: #64 --- src/Client/SwooleClient.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Client/SwooleClient.php b/src/Client/SwooleClient.php index d3cba45..7e8c242 100644 --- a/src/Client/SwooleClient.php +++ b/src/Client/SwooleClient.php @@ -149,6 +149,7 @@ private function startRecvCo(): void $callback = $this->getConfig()->getExceptionCallback(); if ($callback) { $callback($e); + return; } else { throw $e; }