Forgot to make these dicts

This commit is contained in:
Firepup Sixfifty 2024-07-16 16:42:20 +00:00
parent 99ea5d7994
commit 2fefe27858
Signed by: Firepup650
SSH key fingerprint: SHA256:U0Zp8EhEe3CMqFSrC79CqatzaEiL4sjta80/RSX2XrY

View file

@ -208,7 +208,7 @@ async def handleClient(reader, writer):
return # drop "us"
G.msgs.append(log(f"{sName} has linked to the network"))
G.serverLinks += 1
G.servers[sName] = []
G.servers[sName] = {}
msgIndex = 0
writer.write(b"I am awaiting your client listing.\n")
while 1:
@ -401,7 +401,7 @@ async def connectServer(hostname: str, port: int):
return
G.msgs.append(log(f"{rID} has linked to the network"))
G.serverLinks += 1
G.servers[rID] = []
G.servers[rID] = {}
writer.write(b"I recieved your remote ID, now awaiting client listing\n")
await writer.drain()
# recieve client list from the other server