plsgivemeachane commited on
Commit
79d0071
·
1 Parent(s): 23066a8

fix stupid bug lol

Browse files
Files changed (1) hide show
  1. index.js +1 -0
index.js CHANGED
@@ -421,6 +421,7 @@ app.post('/file/upload', upload.single('file'), async (req, res) => {
421
 
422
  if(current_connections.length == 0) {
423
  res.sendStatus(500);
 
424
  }
425
  // Upload the file to another backend
426
  const random_client = Math.floor(Math.random() * current_connections.length);
 
421
 
422
  if(current_connections.length == 0) {
423
  res.sendStatus(500);
424
+ return
425
  }
426
  // Upload the file to another backend
427
  const random_client = Math.floor(Math.random() * current_connections.length);