mirror of
https://github.com/fosrl/olm.git
synced 2026-02-07 21:46:40 +00:00
Handle termination message
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user