fix: close connection when monitor stopped
This commit is contained in:
parent
c02a24ee94
commit
5d425aadb1
|
@ -138,6 +138,7 @@ func (c *monitorService) StopMonitor(server string) (resp types.JSResp) {
|
||||||
}
|
}
|
||||||
|
|
||||||
//close(item.ch)
|
//close(item.ch)
|
||||||
|
item.client.Close()
|
||||||
close(item.closeCh)
|
close(item.closeCh)
|
||||||
delete(c.items, server)
|
delete(c.items, server)
|
||||||
resp.Success = true
|
resp.Success = true
|
||||||
|
|
Loading…
Reference in New Issue