aboutsummaryrefslogtreecommitdiff
path: root/src/modules/kill.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/kill.js')
-rw-r--r--src/modules/kill.js11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/modules/kill.js b/src/modules/kill.js
index 7482bed..e0e93fc 100644
--- a/src/modules/kill.js
+++ b/src/modules/kill.js
@@ -20,8 +20,15 @@ async function kill(process_name) {
kill.process = kill;
-kill.origin = () => {
- return kill("Origin.exe");
+kill.origin = async () => {
+ let origin = await kill("Origin.exe");
+ let eadesktop = await kill("EADesktop.exe");
+
+ if (origin || eadesktop) {
+ return true;
+ }
+
+ return false;
}
module.exports = kill;