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

@@ -58,9 +58,14 @@ func (f *FS) Start() error {
return fmt.Errorf("%w: %w (%w)", ErrFilesystem, ErrFailedToPrepareDirectories, err)
}
go func() {
wg := f.app.GetGlobalWaitGroup()
if wg == nil {
return fmt.Errorf("%w: %w (%s)", ErrFilesystem, ErrFailedToGetWaitGroup, "got nil waitgroup")
}
wg.Go(func() {
f.mount()
}()
})
return nil
}