Wrong error to catch
This commit is contained in:
parent
907a46fe4e
commit
0756cd208b
1 changed files with 2 additions and 2 deletions
|
@ -118,7 +118,7 @@ async def handleClient(reader, writer):
|
||||||
await asyncio.wait_for(
|
await asyncio.wait_for(
|
||||||
reader.read(), 0.01
|
reader.read(), 0.01
|
||||||
) # Silently consume the excess username data
|
) # Silently consume the excess username data
|
||||||
except asyncio.TimeoutError:
|
except TimeoutError:
|
||||||
pass
|
pass
|
||||||
if not name:
|
if not name:
|
||||||
writer.write(b"Nice try. Actually set a nick.\n")
|
writer.write(b"Nice try. Actually set a nick.\n")
|
||||||
|
@ -193,7 +193,7 @@ Please note that this is not network level statistics.\n""".encode(
|
||||||
G.S2SLogs.append(("M", (name, request), G.remoteID))
|
G.S2SLogs.append(("M", (name, request), G.remoteID))
|
||||||
if response:
|
if response:
|
||||||
G.msgs.append(response)
|
G.msgs.append(response)
|
||||||
except asyncio.TimeoutError:
|
except TimeoutError:
|
||||||
pass
|
pass
|
||||||
if msgIndex < len(G.msgs):
|
if msgIndex < len(G.msgs):
|
||||||
writer.writelines(G.msgs[msgIndex:])
|
writer.writelines(G.msgs[msgIndex:])
|
||||||
|
|
Loading…
Reference in a new issue