mirror of
https://github.com/mautrix/whatsapp.git
synced 2025-03-14 14:15:38 +00:00
client: don't clear client on disconnect
This commit is contained in:
parent
300e0a2129
commit
7a48c1e843
1 changed files with 1 additions and 1 deletions
|
@ -283,7 +283,6 @@ func (wa *WhatsAppClient) Disconnect() {
|
|||
}
|
||||
if cli := wa.Client; cli != nil {
|
||||
cli.Disconnect()
|
||||
wa.Client = nil
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -295,6 +294,7 @@ func (wa *WhatsAppClient) LogoutRemote(ctx context.Context) {
|
|||
}
|
||||
}
|
||||
wa.Disconnect()
|
||||
wa.Client = nil
|
||||
}
|
||||
|
||||
func (wa *WhatsAppClient) IsLoggedIn() bool {
|
||||
|
|
Loading…
Add table
Reference in a new issue