mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-30 08:33:19 +01:00
Fix potential concurrency issue when reattaching
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user