Handle termination message

This commit is contained in:
Owen Schwartz
2024-12-08 21:45:02 -05:00
parent 49580f1a3c
commit b9a3632a1e
2 changed files with 15 additions and 0 deletions

View File

@@ -86,6 +86,10 @@ func (c *Client) Close() error {
if c.conn != nil {
return c.conn.Close()
}
// stop the ping monitor
c.setConnected(false)
return nil
}