add stop working
This commit is contained in:
1 parent
3f8e03eda4
commit
f25ded3015
1 file changed
+1
@@ -57,6 +57,7 @@ func (s *httpSrv) run(MaxRequestBodySize int64) {
|
||||
|
||||
func (s *httpSrv) Close() {
|
||||
if s.srv != nil {
|
||||
s.working = false
|
||||
if err := s.srv.Shutdown(); err != nil {
|
||||
log.Warn(log_code.WarnHttpServerShutdown, err)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user