Skip to content

Commit

Permalink
Trying to fix #60
Browse files Browse the repository at this point in the history
  • Loading branch information
Elad Zelingher committed Dec 29, 2016
1 parent 8ce1e49 commit a53261a
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using WampSharp.Core.Listener;
Expand Down Expand Up @@ -125,6 +124,10 @@ private void RaiseConnectionBroken(SessionCloseType sessionCloseType, GoodbyeAbo

Interlocked.CompareExchange(ref mIsConnected, 0, 1);

mOpenTask = new TaskCompletionSource<bool>();

mConnectionBrokenRaised = false;

OnConnectionBroken(closeEventArgs);
}

Expand Down Expand Up @@ -192,9 +195,6 @@ public void OnConnectionClosed()
null,
null);
}

mConnectionBrokenRaised = false;
mOpenTask = new TaskCompletionSource<bool>();
}

public void OnConnectionError(Exception exception)
Expand Down

0 comments on commit a53261a

Please sign in to comment.