connector/client: check for client context nil on logged in check

Signed-off-by: Sumner Evans <sumner.evans@automattic.com>
This commit is contained in:
Sumner Evans
2024-12-09 15:11:49 -07:00
parent 1de97c9ae0
commit 964ea69de7
+1 -1
View File
@@ -655,7 +655,7 @@ func (t *TelegramClient) getUserInfoFromTelegramUser(ctx context.Context, u tg.U
} }
func (t *TelegramClient) IsLoggedIn() bool { func (t *TelegramClient) IsLoggedIn() bool {
if t == nil { if t == nil || t.clientCtx == nil {
return false return false
} }
select { select {