fix: Explicitly exit CLI to prevent hanging subprocesses (#3083)
Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
This commit is contained in:
parent
5e886c35d5
commit
a9624c0fff
1 changed files with 71 additions and 51 deletions
|
|
@ -63,7 +63,8 @@ export namespace FileWatcher {
|
|||
return { sub }
|
||||
},
|
||||
async (state) => {
|
||||
state.sub?.unsubscribe()
|
||||
if (!state.sub) return
|
||||
await state.sub?.unsubscribe()
|
||||
},
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue