Skip to content
This repository was archived by the owner on Dec 5, 2021. It is now read-only.
This repository was archived by the owner on Dec 5, 2021. It is now read-only.

TelegramClient.IsConnected is not working as expected #936

@solarin

Description

@solarin

we have discussed about this, and it seemed to be fixed with the new pr #931

But there are still some cases when it's not working as expected. Consider this real scenario:

ConnectAsync
            await sender.Send(invokewithLayer, token).ConfigureAwait(false);
            await sender.Receive(invokewithLayer, token).ConfigureAwait(false);

Send or Receive generate an exception, which is caught at the higher level which, in turn, checks whether Client.IsConnected to eventually reconnect.

At this point IsConnected = true, but the handhaking failed, hence it's not connected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions