add stop working

This commit is contained in:
DeniskaRediska committed 2020-01-23 17:51:01 +03:00
1 parent 3f8e03eda4
commit f25ded3015
1 file changed
+1
+1
View File
@@ -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)
}