fix: close client app before checking ping response

pull/73/head
dessant 5 years ago
parent e17107f751
commit 715aab74d5

@ -99,14 +99,14 @@ async function pingClientApp({
message: {command: 'ping'}
});
if (checkResponse && (!rsp.success || rsp.data !== 'pong')) {
throw new Error(`Client app response: ${rsp.data}`);
}
if (stop) {
await browser.runtime.sendMessage({id: 'stopClientApp'});
}
if (checkResponse && (!rsp.success || rsp.data !== 'pong')) {
throw new Error(`Client app response: ${rsp.data}`);
}
return rsp;
}

Loading…
Cancel
Save