summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/leap/bitmask/vpn/helpers/linux/bitmask-root2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/leap/bitmask/vpn/helpers/linux/bitmask-root b/src/leap/bitmask/vpn/helpers/linux/bitmask-root
index a043f30c..42a46bd5 100644
--- a/src/leap/bitmask/vpn/helpers/linux/bitmask-root
+++ b/src/leap/bitmask/vpn/helpers/linux/bitmask-root
@@ -448,7 +448,7 @@ def openvpn_stop(args):
"""
plist = get_process_list()
for pid, proc in plist:
- if bytes("openvpn", encoding='utf-8') in proc and LEAPOPENVPN in proc:
+ if bytes("openvpn", 'utf-8') in proc and bytes(LEAPOPENVPN, 'utf-8') in proc:
os.kill(int(pid), signal.SIGTERM)
break