Skip to content

Commit

Permalink
Changed a variable name to better suit what it does
Browse files Browse the repository at this point in the history
  • Loading branch information
alairon committed Jan 11, 2019
1 parent b847fcf commit 1a9681f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ function statusWindow(clientAppID, details, largeImageKey) {
mainWindow.hide();
winLauncher.loadFile('gameConfig.html');

const pidVal = exec.fork('discordConnect.js', [clientAppID, details, largeImageKey]);
const discordProcess = exec.fork('discordConnect.js', [clientAppID, details, largeImageKey]);

// Hide the menu bar
winLauncher.setMenu(null);
Expand All @@ -85,10 +85,10 @@ function statusWindow(clientAppID, details, largeImageKey) {
winLauncher = null;

if (process.platform === 'win32') {
const cmd = `taskkill /pid ${pidVal.pid} /t /f`;
const cmd = `taskkill /pid ${discordProcess.pid} /t /f`;
exec.exec(cmd);
} else {
pidVal.kill('SIGINT');
discordProcess.kill('SIGINT');
}

// Restore control to the main interface
Expand Down

0 comments on commit 1a9681f

Please sign in to comment.