fix: crash
parent
4056ae0231
commit
6b53ae502d
|
@ -143,8 +143,10 @@ func (sys *System) Start() {
|
|||
if sys.status == sys_restart {
|
||||
isRestart = true
|
||||
}
|
||||
|
||||
// only log if system has started
|
||||
if sys.status == sys_wait {
|
||||
history.Send(history.Info().Nm("SysDown").Msg("system stoped"))
|
||||
}
|
||||
l.Info().Msg("Terminating...")
|
||||
sys.status = sys_term
|
||||
go func() {
|
||||
|
|
Loading…
Reference in New Issue