aboutsummaryrefslogtreecommitdiff
path: root/telegram/connect.go
diff options
context:
space:
mode:
authorbodqhrohro <bodqhrohro@gmail.com>2019-12-04 01:43:48 +0300
committerbodqhrohro <bodqhrohro@gmail.com>2019-12-04 01:43:48 +0300
commit3ce5081800ebf1ca92d32f1a051db4671b5105d3 (patch)
tree46e25ef3574b04c729900b1a929a35d027a693aa /telegram/connect.go
parent8949290c529850e28000945550566fbd96c259cf (diff)
Fix segfault on graceful exit
Diffstat (limited to 'telegram/connect.go')
-rw-r--r--telegram/connect.go2
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
}