Skip to content

Commit

Permalink
Clean up future after handling read event for it
Browse files Browse the repository at this point in the history
  • Loading branch information
WyriHaximus committed Jul 7, 2020
1 parent ecf5644 commit 5070e4e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/EventLoopBridge.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ private function handleReadEvent(Events\Event $event): void
private function handleFutureReadEvent(Events\Event $event): void
{
$this->futures[spl_object_hash($event->object)]->resolve($event->value);
unset($this->futures[spl_object_hash($event->object)]);
}

private function handleChannelReadEvent(Events\Event $event): void
Expand Down

0 comments on commit 5070e4e

Please sign in to comment.