Skip to content

Commit 8f45a13

Browse files
committed
Locked missed usage of Subs variable
1 parent c04c836 commit 8f45a13

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Src/SocketIoClientDotNet.net45/Client/Manager_net35.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,9 @@ private void Reconnect()
492492
log2.Info("EasyTimer Reconnect finish");
493493
}, (int)delay);
494494

495-
Subs.Enqueue(new On.ActionHandleImpl(timer.Stop));
495+
lock (Subs){
496+
Subs.Enqueue(new On.ActionHandleImpl(timer.Stop));
497+
}
496498
}
497499
}
498500

0 commit comments

Comments
 (0)