1
0
mirror of https://github.com/GNS3/gns3-server synced 2025-07-23 23:18:11 +00:00

Correct comment about shield

This commit is contained in:
John Fleming 2024-01-28 08:39:08 -05:00
parent 157dc207b7
commit f9fd629641

View File

@ -53,7 +53,7 @@ class SFTelnetProxyMuxer:
await asyncio.sleep(1)
while True:
try:
# Set a timeout for the read operation, without should the socket closes after timeout.
# Set a timeout for the read operation, without should() the socket closes after timeout.
data = await asyncio.shield(asyncio.wait_for(reader.read((4*1024*1024)), timeout=2.0))
if not data:
log.debug(f"No data. Not sure if this is possible.")