fix: lock

master
Evan Chen 2021-12-19 02:19:54 +08:00
parent 10874ba9fc
commit 4056ae0231
1 changed files with 4 additions and 2 deletions

View File

@ -134,8 +134,10 @@ func (sys *System) Start() {
sys.quit <- syscall.SIGTERM
}
}()
<-sys.started
history.Send(history.Info().Nm("SysUP").Msg("system started"))
go func() {
<-sys.started
history.Send(history.Info().Nm("SysUP").Msg("system started"))
}()
<-sys.quit
isRestart := false
if sys.status == sys_restart {