aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPapoteur <papoteur@mageia.org>2020-11-15 10:33:48 +0100
committerPapoteur <papoteur@mageia.org>2020-11-15 10:33:48 +0100
commitab7073e6a9afa583f2db05f804135c4f6136ea7b (patch)
treef5cdb2ed479ac0d00ef157fdd2c1bd8f87ea005e
parent56b326c20700b3b888d698f9ffb25192c52b625b (diff)
downloadisodumper-ab7073e6a9afa583f2db05f804135c4f6136ea7b.tar
isodumper-ab7073e6a9afa583f2db05f804135c4f6136ea7b.tar.gz
isodumper-ab7073e6a9afa583f2db05f804135c4f6136ea7b.tar.bz2
isodumper-ab7073e6a9afa583f2db05f804135c4f6136ea7b.tar.xz
isodumper-ab7073e6a9afa583f2db05f804135c4f6136ea7b.zip
Fix test of already present instance
-rwxr-xr-xlib/isodumper.py2
1 files changed, 1 insertions, 1 deletions
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()