Skip to content

Commit

Permalink
Fixed lock contention when querying connections (SignalR#4469)
Browse files Browse the repository at this point in the history
  • Loading branch information
paveliak committed May 28, 2020
1 parent cb05c37 commit 7c7f22e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ public void MarkConnection(ITrackingConnection connection)

public IList<ITrackingConnection> GetConnections()
{
return _connections.Values.Select(metadata => metadata.Connection).ToList();
return _connections.Select(p => p.Value.Connection).ToList();
}

[SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "We're tracing exceptions and don't want to crash the process.")]
Expand Down

0 comments on commit 7c7f22e

Please sign in to comment.