Skip to content

Commit 79fec04

Browse files
committed
Workaround for web-configurator hangs in setup flow.
- The web-configurator could get stuck when continuing a first-time setup that was previously canceled or interrupted. Added delays as a workaround.
1 parent f6e6e4a commit 79fec04

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

ucapi/api.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1303,12 +1303,14 @@ async def _setup_driver(
13031303
)
13041304

13051305
if isinstance(action, uc.RequestUserInput):
1306+
await asyncio.sleep(0.5)
13061307
await self.driver_setup_progress(websocket)
13071308
await self.request_driver_setup_user_input(
13081309
websocket, action.title, action.settings
13091310
)
13101311
result = True
13111312
elif isinstance(action, uc.RequestUserConfirmation):
1313+
await asyncio.sleep(0.5)
13121314
await self.driver_setup_progress(websocket)
13131315
await self.request_driver_setup_user_confirmation(
13141316
websocket, action.title, action.header, action.image, action.footer

0 commit comments

Comments
 (0)