mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-01 06:00:46 +00:00
Correct mutex release
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user