diff --git a/src/RemoteExecutor.php b/src/RemoteExecutor.php index ff332b8..4c71eee 100644 --- a/src/RemoteExecutor.php +++ b/src/RemoteExecutor.php @@ -139,7 +139,7 @@ private function connect(): Promise $socket->close(); while ($temp) { - $deferred = \array_shift($queue); + $deferred = \array_shift($temp); $deferred->fail($error); } }