Fix bug in single instance check

This commit is contained in:
Gobinath 2017-04-10 21:18:47 -04:00
parent 5e49d74e3a
commit b88e763006
1 changed files with 1 additions and 1 deletions

View File

@ -267,7 +267,7 @@ def running():
try:
# Check if safeeyes is in process arguments
cmd_line = proc.cmdline()
if 'python3' == cmd_line[0] and 'safeeyes' in cmd_line[1]:
if 'python3' in cmd_line[0] and 'safeeyes' in cmd_line[1]:
process_count += 1
if process_count > 1:
return True