Browse files

Fix disconnect logic in ForeverTransport.

  • Loading branch information...
1 parent 7dcf92d commit 1feab940491e2d39fe957c92ddddd9a404c12abe @davidfowl davidfowl committed Jan 9, 2012
Showing with 2 additions and 3 deletions.
  1. +2 −3 SignalR/Transports/ForeverTransport.cs
View
5 SignalR/Transports/ForeverTransport.cs
@@ -163,7 +163,7 @@ protected virtual Task InitializeResponse(IReceivingConnection connection)
{
// Don't timeout
connection.ReceiveTimeout = TimeSpan.FromDays(1);
-
+
return TaskAsyncHelper.Empty;
}
@@ -242,8 +242,7 @@ private void ProcessMessagesImpl(TaskCompletionSource<object> taskCompletetionSo
return;
}
- // Client is no longer connected
- Disconnect().ContinueWith(taskCompletetionSource);
+ taskCompletetionSource.SetResult(null);
return;
}
}

0 comments on commit 1feab94

Please sign in to comment.