Now exits on player exit
This commit is contained in:
parent
bd2469be6f
commit
42fbc310fa
@ -3,6 +3,7 @@
|
||||
from ..mpc_api import MPC_API
|
||||
import time
|
||||
import threading
|
||||
import sys
|
||||
|
||||
class MPCHCAPIPlayer(object):
|
||||
def __init__(self, manager):
|
||||
@ -154,6 +155,7 @@ class MPCHCAPIPlayer(object):
|
||||
|
||||
def mpc_error(self, err=""):
|
||||
self.__syncplayClient.stop()
|
||||
sys.exit()
|
||||
|
||||
def run_mpc(manager, mpc_path, file_path, args):
|
||||
mpc = MPCHCAPIPlayer(manager)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user