Don't wait for bot being stopped too long

This commit is contained in:
JustArchi
2017-02-01 00:44:52 +01:00
parent 8e7ebfd2d1
commit fb4cda513b
6 changed files with 52 additions and 42 deletions

View File

@@ -59,7 +59,7 @@ namespace ArchiSteamFarm {
BotStatusForm.BotForms[PreviouslySelectedBotName].Visible = true;
}
private void MainForm_FormClosed(object sender, FormClosedEventArgs e) => Program.InitShutdownSequence();
private async void MainForm_FormClosed(object sender, FormClosedEventArgs e) => await Program.InitShutdownSequence().ConfigureAwait(false);
private async void MainForm_Load(object sender, EventArgs e) {
Logging.InitFormLogger();