Skip to content

Commit 024afa8

Browse files
committed
Merge pull request #93 from gamer3dx/exceptionfix
Locked missed usage of Subs variable
2 parents 6b601d9 + 8f45a13 commit 024afa8

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)