Sorry Tim, you're not the right error
This commit is contained in:
parent
7f6a4e7b3c
commit
f32bae4f2d
1 changed files with 1 additions and 1 deletions
|
@ -367,7 +367,7 @@ async def connectServer(hostname: str, port: int):
|
||||||
rID = raw((await reader.read(16)).decode("utf8"))
|
rID = raw((await reader.read(16)).decode("utf8"))
|
||||||
try:
|
try:
|
||||||
await asyncio.wait_for(reader.read(1024), 0.1)
|
await asyncio.wait_for(reader.read(1024), 0.1)
|
||||||
except TimoutError:
|
except TimeoutError:
|
||||||
pass
|
pass
|
||||||
if G.servers.get(rID, False) != False:
|
if G.servers.get(rID, False) != False:
|
||||||
writer.close()
|
writer.close()
|
||||||
|
|
Loading…
Reference in a new issue