From 287eef0a642c8ba7bcd1d68c62a2b2ad60529389 Mon Sep 17 00:00:00 2001 From: Alexey Stetsenko Date: Fri, 8 Jun 2018 22:56:53 +0300 Subject: [PATCH] fix lack of write_eof method Bug was hidden by exception handling --- mtprotoproxy.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mtprotoproxy.py b/mtprotoproxy.py index b699a87..bad62a6 100755 --- a/mtprotoproxy.py +++ b/mtprotoproxy.py @@ -149,6 +149,9 @@ class LayeredStreamWriterBase: def write(self, data): return self.upstream.write(data) + def write_eof(self): + return self.upstream.write_eof() + async def drain(self): return await self.upstream.drain()