Skip to content

Commit e24311c

Browse files
authored
fix: 未调用 Exit 导致程序继续执行
1 parent f5370a1 commit e24311c

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

Plain Craft Launcher 2/Application.xaml.vb

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,12 @@ RetryCacheCheck:
115115
End If
116116
Thread.Sleep(500)
117117
Next
118-
If Not IsLocked Then DropToTopByLock(FileLockPath)
118+
If Not IsLocked Then
119+
DropToTopByLock(FileLockPath)
120+
DropToTopByLock(FileLockPath)
121+
Beep()
122+
Environment.Exit(ProcessReturnValues.Cancel)
123+
End If
119124
End If
120125
End If
121126
'设置 ToolTipService 默认值
@@ -200,6 +205,7 @@ RetryCacheCheck:
200205
Dim Pid As Integer
201206
If Not Integer.TryParse(Encoding.UTF8.GetString(Content), Pid) Then Return
202207
ShowWindowToTop(Process.GetProcessById(Pid).MainWindowHandle)
208+
203209
End Sub
204210

205211
'结束

0 commit comments

Comments
 (0)