hprasath commited on
Commit
2481e05
·
verified ·
1 Parent(s): ce4da38

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +1 -1
index.js CHANGED
@@ -63,7 +63,7 @@ const compileJava = (code, input, res) => {
63
  }
64
  const javaProcess = exec(
65
  "javac -d /code/temp /code/temp/Main.java && java -cp /code/temp Main",
66
- { timeout: TIMEOUT_VALUE }, // Add timeout option
67
  (error, stdout, stderr) => {
68
  if (error) {
69
  if (error.killed) {
 
63
  }
64
  const javaProcess = exec(
65
  "javac -d /code/temp /code/temp/Main.java && java -cp /code/temp Main",
66
+ { timeout: TIMEOUT_VALUE },
67
  (error, stdout, stderr) => {
68
  if (error) {
69
  if (error.killed) {