Skip to content

Commit cfb7020

Browse files
committed
fix: pipeline desktop test fails
1 parent bd29a5e commit cfb7020

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/extensionsIntegrated/appUpdater/main.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,10 @@ define(function (require, exports, module) {
407407
if(!installerLocation){
408408
return;
409409
}
410+
// at this time, the node process have exited and we need to force use tauri apis. This would
411+
// normally happen as node responds as terminated, but for updates, this is at quit time and we
412+
// cant wait any longer.
413+
window.fs.forceUseNodeWSEndpoint(false);
410414
console.log("Installing update from: ", installerLocation);
411415
return new Promise(resolve=>{
412416
// this should never reject as it happens in app quit. rejecting wont affect quit, but its unnecessary.

src/node-loader.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -718,7 +718,6 @@ function nodeLoader() {
718718
};
719719

720720
window.PhNodeEngine.terminateNode = function () {
721-
fs.forceUseNodeWSEndpoint(false);
722721
if(!window.isNodeTerminated) {
723722
execNode(NODE_COMMANDS.TERMINATE);
724723
}

0 commit comments

Comments
 (0)