强退时不报错

This commit is contained in:
ZouJin 2023-08-17 18:39:26 +10:00
parent 802263e693
commit cb200e0d84

View File

@ -164,6 +164,8 @@ namespace VPet_Simulator.Windows
Exit();
}
private void Exit()
{
try
{
if (IsSteamUser)
SteamClient.Shutdown();//关掉和Steam的连线
@ -197,6 +199,11 @@ namespace VPet_Simulator.Windows
notifyIcon.Dispose();
}
notifyIcon?.Dispose();
}
finally
{
Environment.Exit(0);
}
while (true)
Environment.Exit(0);
}