send websocket close message to agent

This commit is contained in:
henrygd
2025-07-12 18:49:40 -04:00
parent 4f879ccc66
commit b5d55ead4a
3 changed files with 6 additions and 7 deletions

View File

@@ -365,7 +365,7 @@ func (sys *System) closeSSHConnection() {
// The system will be set as down a few seconds later if the connection is not re-established.
func (sys *System) closeWebSocketConnection() {
if sys.WsConn != nil {
sys.WsConn.Close()
sys.WsConn.Close(nil)
}
}