Skip to content

Commit 1bd9e66

Browse files
author
Magnus
committed
Remove broken duplicate process check
1 parent b678662 commit 1bd9e66

1 file changed

Lines changed: 1 addition & 15 deletions

File tree

src/tools/utils_gui.py

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -32,22 +32,8 @@ def npcap_exists():
3232

3333
def duplicate_elmocut():
3434
"""
35-
Check if there is more than 1 instance of ArpCut running
35+
One may implement this in the future
3636
"""
37-
if sys.platform.startswith('win'):
38-
try:
39-
tasklist = terminal('tasklist')
40-
if not tasklist:
41-
return False
42-
# Count actual process entries (each on its own line)
43-
count = 0
44-
for line in tasklist.lower().split('\n'):
45-
if 'arpcut.exe' in line:
46-
count += 1
47-
return count > 1
48-
except Exception:
49-
return False
50-
# TODO: Implement PID/file lock if needed for macOS
5137
return False
5238

5339
def check_documents_dir():

0 commit comments

Comments
 (0)