From 1e2eb81c51b9a51e6dcb93de1309f42035ee2fdd Mon Sep 17 00:00:00 2001 From: knyjoh Date: Mon, 30 Mar 2020 22:04:47 +0200 Subject: [PATCH] Do not break loop when new handles have been added --- src/Client.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Client.php b/src/Client.php index d4cf5a4..4259d20 100644 --- a/src/Client.php +++ b/src/Client.php @@ -154,6 +154,7 @@ public function push(): array if (!empty($this->notifications)) { $notification = array_pop($this->notifications); curl_multi_add_handle($mh, $this->prepareHandle($notification)); + $running++; } } }