diff --git a/backend/services/monitor_service.go b/backend/services/monitor_service.go index fc0e82c..4ed31fa 100644 --- a/backend/services/monitor_service.go +++ b/backend/services/monitor_service.go @@ -138,6 +138,7 @@ func (c *monitorService) StopMonitor(server string) (resp types.JSResp) { } //close(item.ch) + item.client.Close() close(item.closeCh) delete(c.items, server) resp.Success = true