summaryrefslogtreecommitdiff
path: root/extension
diff options
context:
space:
mode:
authorNate Sesti <sestinj@gmail.com>2023-08-04 23:11:50 -0700
committerNate Sesti <sestinj@gmail.com>2023-08-04 23:11:50 -0700
commit3d614690cd825ac5580074ecdc22f660455204f1 (patch)
tree93ace95120a7f1b8e127c7e02ebae5ed05a3a8d5 /extension
parent67ed7e33543896147b03b28f50bfbd3fac65b030 (diff)
downloadsncontinue-3d614690cd825ac5580074ecdc22f660455204f1.tar.gz
sncontinue-3d614690cd825ac5580074ecdc22f660455204f1.tar.bz2
sncontinue-3d614690cd825ac5580074ecdc22f660455204f1.zip
fix: :bug: ebusy and logging bug fixes
Diffstat (limited to 'extension')
-rw-r--r--extension/src/activation/environmentSetup.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/extension/src/activation/environmentSetup.ts b/extension/src/activation/environmentSetup.ts
index 32dfa52f..d41cb289 100644
--- a/extension/src/activation/environmentSetup.ts
+++ b/extension/src/activation/environmentSetup.ts
@@ -237,9 +237,11 @@ export async function startContinuePythonServer() {
});
child.on("error", (err: any) => {
- if (err.code === "EBUSY" && attempts < maxAttempts) {
+ if (attempts < maxAttempts) {
attempts++;
- console.log(`EBUSY error caught. Retrying attempt ${attempts}...`);
+ console.log(
+ `Error caught (likely EBUSY). Retrying attempt ${attempts}...`
+ );
setTimeout(spawnChild, delay);
} else {
console.error("Failed to start subprocess.", err);