X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;f=server_%2Fio.py;h=95e7d7782f7eecf4ab318d330853cb2285881652;hb=6eae766d1b2cdfe0bdbaaabcbf00977a4df4fbbb;hp=7db47ca7857981f266500bc20b44fe4dd136dc96;hpb=992fc9b392c4318bd2fda31f526ea838b0138a9e;p=plomrogue2-experiments diff --git a/server_/io.py b/server_/io.py index 7db47ca..95e7d77 100644 --- a/server_/io.py +++ b/server_/io.py @@ -111,10 +111,10 @@ def io_loop(q, game_command_handler): content = None if len(x) == 2 else x[2] if command_type == 'ADD_QUEUE': game_command_handler.queues_out[connection_id] = content - elif command_type == 'COMMAND': - game_command_handler.handle_input(content, connection_id) elif command_type == 'KILL_QUEUE': del game_command_handler.queues_out[connection_id] + elif command_type == 'COMMAND': + game_command_handler.handle_input(content, connection_id) def run_server_with_io_loop(command_handler):