Navigation Menu

Skip to content

Commit

Permalink
Disposed subscriptions on removal. Fixes #5
Browse files Browse the repository at this point in the history
  • Loading branch information
PeteGoo committed Mar 2, 2013
1 parent ed7621c commit 24d0a54
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Pushqa.Server/SignalR/QueryablePushService.cs
Expand Up @@ -124,6 +124,9 @@ public class QueryablePushService<T> : PersistentConnection where T : new() {
protected override Task OnDisconnected(IRequest request, string connectionId) {
IDisposable success;
subscriptions.TryRemove(connectionId, out success);
if (success != null) {
success.Dispose();
}
logger.Log(Logger.LogLevel.Debug, string.Format("Client {0} has disconnected from server. Number of remaining connected clients {1}", connectionId, subscriptions.Count));
return base.OnDisconnected(request, connectionId);
}
Expand Down

0 comments on commit 24d0a54

Please sign in to comment.