Skip to content

Commit 143cfb7

Browse files
committed
fix disconnect reason
1 parent 212cade commit 143cfb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SocketIOClient/SocketIO.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@ private async void InvokeDisconnect(string reason)
631631
{
632632
Debug.WriteLine(e);
633633
}
634-
if (reason != DisconnectReason.IOServerDisconnect && reason != DisconnectReason.IOServerDisconnect)
634+
if (reason != DisconnectReason.IOServerDisconnect && reason != DisconnectReason.IOClientDisconnect)
635635
{
636636
//In the this cases (explicit disconnection), the client will not try to reconnect and you need to manually call socket.connect().
637637
if (Options.Reconnection)

0 commit comments

Comments
 (0)