Skip to content

Commit 3a74ccc

Browse files
Update src/SignalR/common/Shared/MessageBuffer.cs
1 parent abd4e57 commit 3a74ccc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SignalR/common/Shared/MessageBuffer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ private async Task RunTimer()
121121

122122
public ValueTask<FlushResult> WriteAsync(SerializedHubMessage hubMessage, CancellationToken cancellationToken)
123123
{
124-
// Default to HubInvocationMessage as that's the only type we use SerializedHubMessage for currently. Should harden this in the future.
124+
// Default to HubInvocationMessage as that's the only type we use SerializedHubMessage for currently when Message is null. Should harden this in the future.
125125
return WriteAsyncCore(hubMessage.Message?.GetType() ?? typeof(HubInvocationMessage), hubMessage.GetSerializedMessage(_protocol), cancellationToken);
126126
}
127127

0 commit comments

Comments
 (0)