Skip to content

Commit

Permalink
Add missing suspension resume
Browse files Browse the repository at this point in the history
Fixes #14.
  • Loading branch information
trowski committed Feb 13, 2024
1 parent 5db4718 commit 81774a2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Internal/StreamResourceSendPipe.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ static function (string $callbackId, $stream) use (
$transferQueue->unshift([$suspension, $export, $data]);
return;
}

$suspension->resume();
} catch (\Throwable $exception) {
$suspension->resume(static fn () => throw new SocketException(
'Failed to send socket: ' . $exception->getMessage(),
Expand Down

0 comments on commit 81774a2

Please sign in to comment.