Fix timer usage

This commit is contained in:
世界
2024-04-02 23:07:26 +08:00
parent 4a4180bde5
commit d20a389043
8 changed files with 28 additions and 25 deletions

View File

@@ -81,7 +81,7 @@ func (s *BoxService) Close() error {
select {
case <-done:
return
case <-time.After(C.DefaultStopFatalTimeout):
case <-time.After(C.FatalStopTimeout):
os.Exit(1)
}
}()