mirror of
https://github.com/LorisYounger/VPet.git
synced 2024-08-30 18:42:36 +00:00
强退时不报错
This commit is contained in:
parent
802263e693
commit
cb200e0d84
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user