Skip to content

Commit

Permalink
Make Connection.Disconnect an explicit interface implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
halter73 committed Apr 3, 2013
1 parent b2241a5 commit 07b7986
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/Microsoft.AspNet.SignalR.Client/Connection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,12 @@ public void Stop(TimeSpan timeout)
/// Stops the <see cref="Connection"/> without sending an abort message to the server.
/// This function is called after we receive a disconnect message from the server.
/// </summary>
public void Disconnect()
void IConnection.Disconnect()
{
Disconnect();
}

private void Disconnect()
{
lock (_stateLock)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ public void FarmDisconnectOnlyRaisesEventOnce()
Thread.Sleep(TimeSpan.FromSeconds(1));
}

connection.Disconnect();
((Client.IConnection)connection).Disconnect();

Thread.Sleep(TimeSpan.FromTicks(timeout.Ticks * nodes.Count));

Expand Down

0 comments on commit 07b7986

Please sign in to comment.