Fixed Ctrl-C handling

This commit is contained in:
2026-02-12 03:18:33 +03:00
parent 1b44637606
commit 4f597b2478
5 changed files with 36 additions and 22 deletions

View File

@@ -43,10 +43,6 @@ func (f *FS) mount() {
}
defer server.Unmount()
select {
case <-f.app.Context().Done():
return
default:
server.Wait()
}
<-f.app.Context().Done()
f.app.Logger().Debug("Application context cancelled, unmounting FUSE server...")
}