diff --git a/src/ipc/ipc.ts b/src/ipc/ipc.ts index 4670805f9..b2b2f6b12 100644 --- a/src/ipc/ipc.ts +++ b/src/ipc/ipc.ts @@ -153,11 +153,9 @@ export function createIpcCallProxy>( pipe( responseSource, - subscribe(response => { - if (response !== 'KEEPER_PONG') { - return; - } - + filter(response => response === 'KEEPER_PONG'), + take(1), + subscribe(() => { clearTimeout(retryTimeout); resolve(); })