Skip to content

Commit a53261a

Browse files
author
Elad Zelingher
committed
Trying to fix #60
1 parent 8ce1e49 commit a53261a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/net45/WampSharp/WAMP2/V2/Client/Session/WampSessionClient.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using System;
2-
using System.Collections.Generic;
32
using System.Threading;
43
using System.Threading.Tasks;
54
using WampSharp.Core.Listener;
@@ -125,6 +124,10 @@ private void RaiseConnectionBroken(SessionCloseType sessionCloseType, GoodbyeAbo
125124

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

127+
mOpenTask = new TaskCompletionSource<bool>();
128+
129+
mConnectionBrokenRaised = false;
130+
128131
OnConnectionBroken(closeEventArgs);
129132
}
130133

@@ -192,9 +195,6 @@ public void OnConnectionClosed()
192195
null,
193196
null);
194197
}
195-
196-
mConnectionBrokenRaised = false;
197-
mOpenTask = new TaskCompletionSource<bool>();
198198
}
199199

200200
public void OnConnectionError(Exception exception)

0 commit comments

Comments
 (0)