forked from Firepup650/python-talk
Forgot to make these dicts
This commit is contained in:
parent
99ea5d7994
commit
2fefe27858
1 changed files with 2 additions and 2 deletions
|
@ -208,7 +208,7 @@ async def handleClient(reader, writer):
|
||||||
return # drop "us"
|
return # drop "us"
|
||||||
G.msgs.append(log(f"{sName} has linked to the network"))
|
G.msgs.append(log(f"{sName} has linked to the network"))
|
||||||
G.serverLinks += 1
|
G.serverLinks += 1
|
||||||
G.servers[sName] = []
|
G.servers[sName] = {}
|
||||||
msgIndex = 0
|
msgIndex = 0
|
||||||
writer.write(b"I am awaiting your client listing.\n")
|
writer.write(b"I am awaiting your client listing.\n")
|
||||||
while 1:
|
while 1:
|
||||||
|
@ -401,7 +401,7 @@ async def connectServer(hostname: str, port: int):
|
||||||
return
|
return
|
||||||
G.msgs.append(log(f"{rID} has linked to the network"))
|
G.msgs.append(log(f"{rID} has linked to the network"))
|
||||||
G.serverLinks += 1
|
G.serverLinks += 1
|
||||||
G.servers[rID] = []
|
G.servers[rID] = {}
|
||||||
writer.write(b"I recieved your remote ID, now awaiting client listing\n")
|
writer.write(b"I recieved your remote ID, now awaiting client listing\n")
|
||||||
await writer.drain()
|
await writer.drain()
|
||||||
# recieve client list from the other server
|
# recieve client list from the other server
|
||||||
|
|
Loading…
Reference in a new issue