We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da2d636 commit d57903cCopy full SHA for d57903c
internal/web/web.go
@@ -227,6 +227,7 @@ func (web *Web) MustClose() {
227
utils.Sleep(0.5)
228
// remove process just in case
229
// os.Process is cross platform safe way to remove a process
230
- osprocess := os.Process{Pid: web.launcher.PID()}
231
- _ = osprocess.Kill()
+ if osprocess, err := os.FindProcess(web.launcher.PID()); err != nil {
+ osprocess.Kill()
232
+ }
233
}
0 commit comments