Skip to content

Commit b20537f

Browse files
committed
Merge pull request #101 from FrankPetrilli/master
Fix exception regarding modification after enumerator
2 parents 087b647 + 70c2aef commit b20537f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Src/SocketIoClientDotNet.net45/Client/Manager.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,9 @@ private void Cleanup()
397397
{
398398
foreach (var sub in Subs)
399399
{
400-
sub.Destroy();
400+
lock (Subs) {
401+
sub.Destroy();
402+
}
401403
}
402404
}
403405

0 commit comments

Comments
 (0)