Telethon/telethon
Lonami Exo 863d2e8368 Make confirm_received a flag, avoid race conditions, fix bg RPCError
There was a race condition between TelegramBareClient.invoke
receiving part and MtProtoSender._handle_rpc_result actually
reading the result after setting request.confirmed = True.

The .confirmed is now a threading.Event to avoid the sleep(0.1).

RPC errors have been moved inside the request so they're not
raised on a background thread anymore.
2017-09-02 20:41:00 +02:00
..
crypto Replace the old Session+pickle with JsonSession (name change) 2017-08-29 15:59:08 +02:00
errors Verify the files downloaded from CDNs and raise on sha256 mismatch 2017-08-28 14:17:31 +02:00
extensions Remove unused TcpClien.read(timeout=...) param, change other accessors 2017-09-02 19:33:42 +02:00
network Make confirm_received a flag, avoid race conditions, fix bg RPCError 2017-09-02 20:41:00 +02:00
tl Make confirm_received a flag, avoid race conditions, fix bg RPCError 2017-09-02 20:41:00 +02:00
__init__.py Completely change errors (make one class for each) 2017-06-10 11:47:51 +02:00
helpers.py Slightly reorganise the project structure 2017-06-09 16:13:39 +02:00
telegram_bare_client.py Make confirm_received a flag, avoid race conditions, fix bg RPCError 2017-09-02 20:41:00 +02:00
telegram_client.py Remove unused TcpClien.read(timeout=...) param, change other accessors 2017-09-02 19:33:42 +02:00
utils.py Fix get_input_* not skipping None entities (#215) 2017-08-30 11:12:25 +02:00