use readline instead of read

This commit is contained in:
Marks Polakovs 2020-04-12 23:04:52 +02:00
parent eac9f00cb0
commit f732e94c3f

View file

@ -332,7 +332,7 @@ async def telnet_server(
) -> None:
global active_sessions, live_session
while True:
data = await reader.read(128)
data = await reader.readline()
if not data:
break
try: