disable bad try catch

cleanup_stuff
joneugster 3 years ago
parent 81073b24b8
commit 2213862998

@ -101,13 +101,7 @@ function startServerProcess(owner, repo) {
function fillQueue(owner, repo) { function fillQueue(owner, repo) {
while (queue[tag(owner, repo)].length < queueLength[tag(owner, repo)]) { while (queue[tag(owner, repo)].length < queueLength[tag(owner, repo)]) {
let serverProcess let serverProcess
try { serverProcess = startServerProcess(tag(owner, repo))
serverProcess = startServerProcess(tag(owner, repo))
} catch (e) {
console.error('error starting the server')
console.error(e)
return
}
if (serverProcess == null) { if (serverProcess == null) {
console.error('serverProcess was undefined/null') console.error('serverProcess was undefined/null')
return return
@ -134,12 +128,7 @@ wss.addListener("connection", function(ws, req) {
let ps let ps
if (!queue[tag(owner, repo)] || queue[tag(owner, repo)].length == 0) { if (!queue[tag(owner, repo)] || queue[tag(owner, repo)].length == 0) {
try { ps = startServerProcess(owner, repo)
ps = startServerProcess(owner, repo)
} catch (e) {
console.error('error starting the server')
console.error(e)
}
} else { } else {
console.info('Got process from the queue') console.info('Got process from the queue')
ps = queue[tag(owner, repo)].shift() // Pick the first Lean process; it's likely to be ready immediately ps = queue[tag(owner, repo)].shift() // Pick the first Lean process; it's likely to be ready immediately

Loading…
Cancel
Save