diff options
author | bodqhrohro <bodqhrohro@gmail.com> | 2019-12-04 01:43:48 +0300 |
---|---|---|
committer | bodqhrohro <bodqhrohro@gmail.com> | 2019-12-04 01:43:48 +0300 |
commit | 3ce5081800ebf1ca92d32f1a051db4671b5105d3 (patch) | |
tree | 46e25ef3574b04c729900b1a929a35d027a693aa /telegram/connect.go | |
parent | 8949290c529850e28000945550566fbd96c259cf (diff) |
Fix segfault on graceful exit
Diffstat (limited to 'telegram/connect.go')
-rw-r--r-- | telegram/connect.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/telegram/connect.go b/telegram/connect.go index f1b3dc5..478f5a3 100644 --- a/telegram/connect.go +++ b/telegram/connect.go @@ -130,7 +130,7 @@ func (c *Client) Disconnect() { // TODO: send unavailable presence to cached chats - c.client.Stop() + c.client.Destroy() c.online = false } |