home · contact · privacy
Minor code rearrangements.
[plomrogue2-experiments] / server_ / io.py
index 7db47ca7857981f266500bc20b44fe4dd136dc96..95e7d7782f7eecf4ab318d330853cb2285881652 100644 (file)
@@ -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):