Skip to content

Commit

Permalink
Potentional shutdown fix
Browse files Browse the repository at this point in the history
  • Loading branch information
excap3r committed Sep 4, 2020
1 parent 930f31c commit 1cda391
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions main/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const { exec } = require("shelljs");
const find = require("find-process");
const { process_name, shutdown_timeout, check_interval_timeout } = require("../config/config");
const process_name_rendered = process_name.split('.')[0];
const process_name_rendered = process_name.split(".")[0];

const checkVLC = async () => {
let list = await find("name", process_name, false);
Expand All @@ -20,7 +20,6 @@ const checkVLC = async () => {

setTimeout(() => {
exec("shutdown /s /f /t 3");
process.exit(0);
}, shutdown_timeout * 1000);

console.log("Press any key to abort..");
Expand Down

0 comments on commit 1cda391

Please sign in to comment.