mirror of
https://github.com/wiz0u/WTelegramClient.git
synced 2026-04-06 06:53:47 +00:00
Prevent "You must connect to Telegram first" during network loss
(closes #157)
This commit is contained in:
parent
131fd36106
commit
d1e583cc86
4 changed files with 14 additions and 7 deletions
2
FAQ.md
2
FAQ.md
|
|
@ -205,7 +205,7 @@ You can choose to increase `MaxAutoReconnects` if it happens too often because y
|
|||
|
||||
3) If you reach `MaxAutoReconnects` disconnections, then the **OnOther** event handler will receive a `ReactorError` object to notify you of the problem,
|
||||
and pending API calls throw the network IOException.
|
||||
In this case, the recommended action would be to dispose the client and recreate one
|
||||
In this case, the recommended action would be to dispose the client and recreate one (see example [Program_ReactorError.cs](https://github.com/wiz0u/WTelegramClient/blob/master/Examples/Program_ReactorError.cs))
|
||||
|
||||
4) In case of slow Internet connection or if you break in the debugger for some time,
|
||||
you might also get Connection shutdown because your client couldn't send Pings to Telegram in the allotted time.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue