From ab7073e6a9afa583f2db05f804135c4f6136ea7b Mon Sep 17 00:00:00 2001 From: Papoteur Date: Sun, 15 Nov 2020 10:33:48 +0100 Subject: Fix test of already present instance --- lib/isodumper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/isodumper.py b/lib/isodumper.py index 69a645a..bd8802b 100755 --- a/lib/isodumper.py +++ b/lib/isodumper.py @@ -563,7 +563,7 @@ exFAT, NTFS or ext. You can specify a volume name and the format in a new dialog current_pid = psutil.Process().pid proc_iter = psutil.process_iter(attrs=["pid", "name"]) for p in proc_iter: - if p.info["name"] == APP and p.info["name"] != current_pid: + if (p.info["name"] == APP) and (p.info["pid"] != current_pid): info = Info(_("Error"), True, _("There is another instance of Isodumper already running.")) self.ask_OK(info) yui.YUILoader.deleteUI() -- cgit v1.2.1