[FIX] hw_drivers: Kill MPD server on start

The MPD server was not correctly killed when the IoTBox started without
six payment terminal configured. A warning was displayed.

closes odoo/odoo#36415

Signed-off-by: Quentin Lejeune (qle) <qle@odoo.com>
This commit is contained in:
Antoine Prieels
2019-09-04 11:58:48 +00:00
parent fd32139b0d
commit 16c32f0c25
+1 -1
View File
@@ -475,7 +475,7 @@ if terminal_id:
mpdm.start()
else:
try:
subprocess.check_call(["pkill", "9", "eftdvs"]) # Check if MPD server is running
subprocess.check_call(["pkill", "-9", "eftdvs"]) # Check if MPD server is running
except subprocess.CalledProcessError:
pass