Skip to content

Commit

Permalink
Fix crash when uninstalling service via config utility
Browse files Browse the repository at this point in the history
Who could've guessed that trying to delete the service logs before stopping the service would cause a crash??
  • Loading branch information
Sparronator9999 committed Sep 4, 2024
1 parent 7975558 commit 69d7f32
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions YAMDCC.GUI/MainWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -363,14 +363,14 @@ private void tsiUninstall_Click(object sender, EventArgs e)
MessageBoxButtons.YesNo, MessageBoxIcon.Warning,
MessageBoxDefaultButton.Button2) == DialogResult.Yes;

IPCClient.Stop();
Close();
Utils.UninstallService("yamdccsvc");

if (delData)
{
Directory.Delete(DataPath, true);
}

IPCClient.Stop();
Close();
Utils.UninstallService("yamdccsvc");
}
}
#endregion
Expand Down

0 comments on commit 69d7f32

Please sign in to comment.