Skip to content

Commit f4374fa

Browse files
committed
Merge branch '1-stable' of github.com:kuzzleio/sdk-csharp into 1-stable
2 parents 3be12d7 + 5500195 commit f4374fa

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

Kuzzle/Kuzzle.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<metadata>
44
<id>kuzzlesdk</id>
55
<title>Kuzzle SDK</title>
6-
<version>1.0.1</version>
6+
<version>1.0.2</version>
77
<authors>Kuzzle Team</authors>
88
<owners>Kuzzle Team</owners>
99
<license type="expression">Apache-2.0</license>

Kuzzle/Protocol/WebSocket.cs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -282,20 +282,15 @@ private void Reconnect() {
282282
ConnectAsync(reconnectCancellationToken.Token).Wait();
283283
return;
284284
} catch (Exception) {
285-
socket.Abort();
286-
socket = null;
287-
receiveCancellationToken?.Cancel();
288-
receiveCancellationToken = null;
289-
sendCancellationToken?.Cancel();
290-
sendCancellationToken = null;
285+
ResetState();
291286
Thread.Sleep(ReconnectionDelay);
292287
}
293288
}
294289
CloseState(false);
295290
}
296291

297292
private void ResetState() {
298-
socket.Abort();
293+
socket?.Abort();
299294
socket = null;
300295
receiveCancellationToken?.Cancel();
301296
receiveCancellationToken = null;

0 commit comments

Comments
 (0)