From 19bc105c1d8c02b21bbee9624b69f3a471477880 Mon Sep 17 00:00:00 2001 From: Andreas Fankhauser hiddenalpha.ch Date: Thu, 19 Sep 2024 16:33:49 +0200 Subject: (PaisaNoslim) Fix accidental infinite loop. --- src/main/paisa-nonslim/foo.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main/paisa-nonslim/foo.js b/src/main/paisa-nonslim/foo.js index 2dd1847..2026dda 100644 --- a/src/main/paisa-nonslim/foo.js +++ b/src/main/paisa-nonslim/foo.js @@ -801,9 +801,7 @@ Related: child.on("error", console.error.bind(console)); child.stderr.on("data", function( buf ){ log.write(buf); }); child.on("close", function( code, signal ){ - if( code === 1 && signal === null ){ - checkout(); /* try next remote/branch name */ - }else if( code !== 0 || signal !== null ){ + if( code !== 0 || signal !== null ){ onDone(Error("code "+ code +", signal "+ signal)); }else{ onDone(null, null); -- cgit v1.1