mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-22 01:16:35 +03:00
Add hack to workaround drain cancels
This commit is contained in:
parent
620f33dab3
commit
6ec366596b
|
@ -278,6 +278,7 @@ class Sender:
|
||||||
|
|
||||||
async def _do_send(self) -> None:
|
async def _do_send(self) -> None:
|
||||||
if self._write_drain_pending:
|
if self._write_drain_pending:
|
||||||
|
self._on_net_write()
|
||||||
await self._writer.drain()
|
await self._writer.drain()
|
||||||
self._write_drain_pending = False
|
self._write_drain_pending = False
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user