Add reading clients' messages.
This commit is contained in:
@@ -93,7 +93,9 @@ class Server:
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
while True:
|
while True:
|
||||||
pass
|
data = await reader.read(self.BUFFER_SIZE)
|
||||||
|
if not data:
|
||||||
|
break
|
||||||
except asyncio.CancelledError:
|
except asyncio.CancelledError:
|
||||||
pass
|
pass
|
||||||
finally:
|
finally:
|
||||||
|
|||||||
Reference in New Issue
Block a user