mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-01 14:10:53 +00:00
Misc
This commit is contained in:
@@ -110,6 +110,10 @@ namespace ArchiSteamFarm {
|
||||
Mutex? singleInstance = null;
|
||||
|
||||
for (byte i = 0; (i < WebBrowser.MaxTries) && (singleInstance == null); i++) {
|
||||
if (i > 0) {
|
||||
await Task.Delay(1000).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
singleInstance = new Mutex(true, uniqueName, out bool result);
|
||||
|
||||
if (result) {
|
||||
@@ -118,8 +122,6 @@ namespace ArchiSteamFarm {
|
||||
|
||||
singleInstance.Dispose();
|
||||
singleInstance = null;
|
||||
|
||||
await Task.Delay(1000).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
if (singleInstance == null) {
|
||||
|
||||
Reference in New Issue
Block a user