Correct mutex release

This commit is contained in:
JustArchi
2019-03-30 21:00:41 +01:00
parent c73e0e2efb
commit c8e6ec6870

View File

@@ -100,7 +100,8 @@ namespace ArchiSteamFarm {
return;
}
SingleInstance.ReleaseMutex();
// We should release the mutex here, but that can be done only from the same thread due to thread affinity
// Instead, we'll dispose the mutex which should automatically release it by the CLR
SingleInstance.Dispose();
SingleInstance = null;
}