Skip to content

Commit b0c4e1c

Browse files
sunghwan2789michaelstaib
authored andcommitted
Fixed client complete abort websocket that is sending (#7793)
1 parent 7cafe32 commit b0c4e1c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/HotChocolate/AspNetCore/src/AspNetCore/Subscriptions/OperationSession.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ await _session.Protocol.SendErrorMessageAsync(
7474
{
7575
try
7676
{
77-
await SendResultMessageAsync(item, ct);
77+
// use original cancellation token here to keep the websocket open for other streams.
78+
await SendResultMessageAsync(item, cancellationToken);
7879
}
7980
finally
8081
{

0 commit comments

Comments
 (0)