Fix write log to stderr

This commit is contained in:
世界
2023-04-10 08:48:58 +08:00
parent 8699412a4c
commit f7f9a7ae20
3 changed files with 6 additions and 3 deletions

View File

@@ -42,7 +42,7 @@ func (s *CommandServer) handleStatusConn(conn net.Conn) error {
}
select {
case <-ctx.Done():
return nil
return ctx.Err()
case <-ticker.C:
}
}