mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-01 14:10:53 +00:00
Misc WCF enhancements
This commit is contained in:
@@ -682,7 +682,12 @@ namespace ArchiSteamFarm {
|
||||
return null;
|
||||
}
|
||||
|
||||
Program.Exit(0);
|
||||
// Schedule the task after some time so user can receive response
|
||||
Task.Run(async () => {
|
||||
await Utilities.SleepAsync(1000).ConfigureAwait(false);
|
||||
Program.Exit();
|
||||
});
|
||||
|
||||
return "Done!";
|
||||
}
|
||||
|
||||
@@ -899,7 +904,12 @@ namespace ArchiSteamFarm {
|
||||
return null;
|
||||
}
|
||||
|
||||
Program.Restart();
|
||||
// Schedule the task after some time so user can receive response
|
||||
Task.Run(async () => {
|
||||
await Utilities.SleepAsync(1000).ConfigureAwait(false);
|
||||
Program.Restart();
|
||||
});
|
||||
|
||||
return "Done!";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user