Skip to content

Commit

Permalink
Update EventLoop.php
Browse files Browse the repository at this point in the history
  • Loading branch information
VennDev authored Aug 9, 2024
1 parent ac5ee4f commit 453a6a2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/vennv/vapm/simultaneous/EventLoop.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,7 @@ public static function addQueue(Promise $promise): void
public static function removeQueue(int $id): void
{
foreach (self::$queues as $promise) {
/* @var Promise $promise */
if ($promise->getId() === $id) {
if ($promise instanceof Promise && $promise->getId() === $id) {
self::$queues->offsetUnset($promise);
break;
}
Expand Down

0 comments on commit 453a6a2

Please sign in to comment.