Bugfix for handling a RPC goodbye header

This commit is contained in:
Cheng Guo 2018-05-15 21:40:42 +02:00 committed by Pedro Ferreira
parent 5af5df69d0
commit 3ce46291b3

View File

@ -131,7 +131,7 @@ class PacketStream(object):
async def _read(self):
try:
header = await self.connection.read()
if not header:
if not header or header == b'\x00' * 9:
return
flags, length, req = struct.unpack('>BIi', header)