Skip to content

Commit

Permalink
connector/client: check for client context nil on logged in check
Browse files Browse the repository at this point in the history
Signed-off-by: Sumner Evans <[email protected]>
  • Loading branch information
sumnerevans committed Dec 9, 2024
1 parent 1de97c9 commit 964ea69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/connector/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,7 @@ func (t *TelegramClient) getUserInfoFromTelegramUser(ctx context.Context, u tg.U
}

func (t *TelegramClient) IsLoggedIn() bool {
if t == nil {
if t == nil || t.clientCtx == nil {
return false
}
select {
Expand Down

0 comments on commit 964ea69

Please sign in to comment.