summaryrefslogtreecommitdiffhomepage
path: root/gui/src
diff options
context:
space:
mode:
Diffstat (limited to 'gui/src')
-rw-r--r--gui/src/main/daemon-rpc.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/gui/src/main/daemon-rpc.ts b/gui/src/main/daemon-rpc.ts
index 9df81f119e..4dbae23630 100644
--- a/gui/src/main/daemon-rpc.ts
+++ b/gui/src/main/daemon-rpc.ts
@@ -569,7 +569,10 @@ export class DaemonRpc {
throw error;
}
});
- subscription.cancel();
+ // setImmediate is required due to https://github.com/grpc/grpc-node/issues/1464. Should be
+ // possible to remove it again after upgrading to Electron 16 which is using a node version
+ // where this is fixed.
+ setImmediate(() => subscription.cancel());
}
}