diff --git a/mtprotoproxy.py b/mtprotoproxy.py index 874708b..24a1f62 100755 --- a/mtprotoproxy.py +++ b/mtprotoproxy.py @@ -1013,7 +1013,7 @@ async def handle_bad_client(reader_clt, writer_clt, handshake): writer.write(data) await writer.drain() - except OSError: + except (OSError, asyncio.IncompleteReadError) as e: pass writer_srv = None