aboutsummaryrefslogtreecommitdiff
path: root/telegram/client.go
diff options
context:
space:
mode:
authorbodqhrohro <bodqhrohro@gmail.com>2019-12-15 05:26:07 +0300
committerbodqhrohro <bodqhrohro@gmail.com>2019-12-15 05:26:07 +0300
commite43a0c314461b5e5b107a723e2cc3f9abe38b1f0 (patch)
treecc8e824b0ea9b64a034e80a1b5bf93a9f4ceba20 /telegram/client.go
parent0274f474338fad09b1414a608aad4a077a45453d (diff)
Fix breaking the TDlib data on graceful exit
Diffstat (limited to 'telegram/client.go')
-rw-r--r--telegram/client.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/telegram/client.go b/telegram/client.go
index f15d07d..5e9dd9f 100644
--- a/telegram/client.go
+++ b/telegram/client.go
@@ -44,6 +44,7 @@ type Client struct {
parameters *client.TdlibParameters
logVerbosity client.Option
me *client.User
+ listener *client.Listener
xmpp *xmpp.Component
jid string
@@ -51,8 +52,7 @@ type Client struct {
content *config.TelegramContentConfig
cache *cache
- locks clientLocks
- online bool
+ locks clientLocks
}
type clientLocks struct {