fix: wait for client app to close before launching new version

pull/73/head
dessant 5 years ago
parent aebd114728
commit d9aef008f3

@ -541,7 +541,7 @@
},
"info_updatingClientApp": {
"message": "Updating client app. This will take a moment.",
"message": "Updating client app. Solving will continue in a moment, do not switch away from the current tab.",
"description": "Info message."
},

@ -7,7 +7,8 @@ import {
getText,
waitForElement,
arrayBufferToBase64,
getRandomFloat
getRandomFloat,
sleep
} from 'utils/common';
import {
captchaGoogleSpeechApiLangCodes,
@ -655,6 +656,7 @@ async function runSolver(ev) {
if (rsp.success) {
await browser.runtime.sendMessage({id: 'stopClientApp'});
await sleep(10000);
await pingClientApp({stop: false});

Loading…
Cancel
Save