Fix potential concurrency issue when reattaching

This commit is contained in:
Cyberboss
2020-05-31 16:44:22 -04:00
parent 1d561dc542
commit a391144abd
@@ -241,8 +241,9 @@ namespace Tgstation.Server.Host.Components.Session
_ = process.Lifetime.ContinueWith(
x =>
{
if (!disposed)
reattachTopicCts.Cancel();
lock (synchronizationLock)
if (!disposed)
reattachTopicCts.Cancel();
chatTrackingContext.Active = false;
},
TaskScheduler.Current);