| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent def85da commit 6fff9ff
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -234,13 +234,13 @@ class NodeInspector { | |||
| 234 | 234 | this.stdout.write(' ok\n'); | |
| 235 | 235 | }, (error) => { | |
| 236 | 236 | debuglog('connect failed', error); | |
| 237 | - // If it's failed to connect 10 times then print failed message | ||
| 238 | - if (connectionAttempts >= 10) { | ||
| 237 | + // If it's failed to connect 5 times then print failed message | ||
| 238 | + if (connectionAttempts >= 5) { | ||
| 239 | 239 | this.stdout.write(' failed to connect, please retry\n'); | |
| 240 | 240 | process.exit(1); | |
| 241 | 241 | } | |
| 242 | 242 | ||
| 243 | - return new Promise((resolve) => setTimeout(resolve, 500)) | ||
| 243 | + return new Promise((resolve) => setTimeout(resolve, 1000)) | ||
| 244 | 244 | .then(attemptConnect); | |
| 245 | 245 | }); | |
| 246 | 246 | }; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments