We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3afbf1d commit 952a266Copy full SHA for 952a266
src/interceptors/chromium-based-interceptors.ts
@@ -231,11 +231,18 @@ abstract class ExistingChromiumBasedInterceptor implements Interceptor {
231
232
if (process.platform === 'win32') {
233
windowsClose(existingPid);
234
+
235
+ try {
236
+ await waitForExit(existingPid);
237
+ } catch (e) {
238
+ // Try again, but less gently this time:
239
+ process.kill(existingPid);
240
241
+ }
242
} else {
243
process.kill(existingPid);
244
245
}
-
- await waitForExit(existingPid);
246
247
248
const browserDetails = await getBrowserDetails(this.config, this.variantName);
0 commit comments