File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
src/Microsoft.Azure.SignalR/ServerConnections Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 99using System . Threading . Tasks ;
1010using Microsoft . AspNetCore . Connections ;
1111using Microsoft . AspNetCore . Http ;
12+ using Microsoft . Azure . SignalR . Common ;
1213using Microsoft . Azure . SignalR . Protocol ;
1314using Microsoft . Extensions . Logging ;
1415using Microsoft . Extensions . Primitives ;
@@ -337,6 +338,11 @@ private async Task ProcessOutgoingMessagesAsync(ClientConnectionContext connecti
337338 // Forward the message to the service
338339 await WriteAsync ( new ConnectionDataMessage ( connection . ConnectionId , buffer ) ) ;
339340 }
341+ catch ( ServiceConnectionNotActiveException )
342+ {
343+ // Service connection not active means the transport layer for this connection is closed, no need to continue processing
344+ break ;
345+ }
340346 catch ( Exception ex )
341347 {
342348 Log . ErrorSendingMessage ( Logger , ex ) ;
You can’t perform that action at this time.
0 commit comments