@@ -697,7 +697,7 @@ async def shutdown(self, force: bool = False) -> None:
697697 if await self .is_running ():
698698 if not force :
699699 await self .do_shutdown ()
700- # wait 30/ 60s for the process to terminate
700+ # wait 30 / 60s for the process to terminate
701701 for i in range (1 , 60 if self .node .locals .get ('slow_system' , False ) else 30 ):
702702 if not self .process or not self .process .is_running ():
703703 break
@@ -723,7 +723,7 @@ async def _terminate(self) -> None:
723723 if not self .process or not self .process .is_running ():
724724 return
725725 self .process .terminate ()
726- # wait 30/ 60s for the process to terminate
726+ # wait 30 / 60s for the process to terminate
727727 for i in range (1 , 60 if self .node .locals .get ('slow_system' , False ) else 30 ):
728728 if not self .process or not self .process .is_running ():
729729 return
@@ -1036,14 +1036,24 @@ async def loadMission(self, mission: int | str, modify_mission: bool | None = Tr
10361036 except ValueError :
10371037 return False
10381038 else :
1039+ timeout = 300 if self .node .locals .get ('slow_system' , False ) else 180
10391040 try :
10401041 idx = mission_list .index (filename ) + 1
10411042 if idx == start_index :
1042- rc = await self .send_to_dcs_sync ({"command" : "startMission" , "filename" : filename })
1043+ rc = await self .send_to_dcs_sync ({
1044+ "command" : "startMission" ,
1045+ "filename" : filename
1046+ }, timeout = timeout )
10431047 else :
1044- rc = await self .send_to_dcs_sync ({"command" : "startMission" , "id" : idx })
1048+ rc = await self .send_to_dcs_sync ({
1049+ "command" : "startMission" ,
1050+ "id" : idx
1051+ }, timeout = timeout )
10451052 except ValueError :
1046- rc = await self .send_to_dcs_sync ({"command" : "startMission" , "filename" : filename })
1053+ rc = await self .send_to_dcs_sync ({
1054+ "command" : "startMission" ,
1055+ "filename" : filename
1056+ }, timeout = timeout )
10471057 # We could not load the mission
10481058 result = rc ['result' ] if isinstance (rc ['result' ], bool ) else (rc ['result' ] == 0 )
10491059 if not result :
0 commit comments