@@ -65,21 +65,21 @@ def read_settings(self):
65
65
def handle_message (self , message ):
66
66
if message [ServerConstants .KEY_NAME ] == ServerConstants .MESSAGE_TYPE_INIT :
67
67
self .world ._handle_init_message (message )
68
- threading .Thread (target = self .launch_on_thread (self .client .preprocess , 'init' , self .world , [])).start ()
68
+ threading .Thread (target = self .launch_on_thread , args = (self .client .preprocess , 'init' , self .world , [])).start ()
69
69
elif message [ServerConstants .KEY_NAME ] == ServerConstants .MESSAGE_TYPE_PICK :
70
70
new_world = World (world = self .world )
71
71
new_world ._handle_pick_message (message )
72
- threading .Thread (target = self .launch_on_thread (self .client .pick , 'pick' , new_world ,
73
- [new_world .current_turn ])).start ()
72
+ threading .Thread (target = self .launch_on_thread , args = (self .client .pick , 'pick' , new_world ,
73
+ [new_world .current_turn ])).start ()
74
74
elif message [ServerConstants .KEY_NAME ] == ServerConstants .MESSAGE_TYPE_TURN :
75
75
new_world = World (world = self .world )
76
76
new_world ._handle_turn_message (message )
77
77
if new_world .current_phase == Phase .MOVE :
78
- threading .Thread (target = self .launch_on_thread (self .client .move , 'move' , new_world ,
78
+ threading .Thread (target = self .launch_on_thread , args = (self .client .move , 'move' , new_world ,
79
79
[new_world .current_turn ,
80
80
new_world .move_phase_num ])).start ()
81
81
elif new_world .current_phase == Phase .ACTION :
82
- threading .Thread (target = self .launch_on_thread (self .client .action , 'action' , new_world ,
82
+ threading .Thread (target = self .launch_on_thread , args = (self .client .action , 'action' , new_world ,
83
83
[new_world .current_turn ])).start ()
84
84
elif message [ServerConstants .KEY_NAME ] == ServerConstants .MESSAGE_TYPE_SHUTDOWN :
85
85
self .terminate ()
0 commit comments