Skip to content
Snippets Groups Projects
Commit 7b4fae5f authored by Johan Thörnblom's avatar Johan Thörnblom
Browse files

step3 working

parent 6e9c9584
No related branches found
No related tags found
No related merge requests found
......@@ -89,7 +89,7 @@ def echo(socket):
print(session)
# sign out if I am logged in somewhere else
for token in list(session.keys()):
if session[token][0] == myEmail and session[token][1] != "":
if session[token][0] == myEmail and session[token][1] != "" and token != myToken:
print("You got kicked out")
session[token][1].send(json.dumps({"action" : "signOut"}))
session[token][1].close()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment