Browse Source

try to fix #407

pull/1/head
amper43 6 years ago
parent
commit
136834b150
  1. 3
      analytics/analytics/services/server_service.py

3
analytics/analytics/services/server_service.py

@ -58,7 +58,8 @@ class ServerService:
async def __anext__(self) -> ServerMessage:
while True:
text = await self.socket.recv_string()
received_bytes = await self.socket.recv(copy=True)
text = received_bytes.decode('utf-8')
if text == 'PING':
asyncio.ensure_future(self.__handle_ping())

Loading…
Cancel
Save