Switch from multiprocessing.dummy to threading to fix startup issue
This commit is contained in:
parent
20e55873e9
commit
bcff80c714
@ -1,5 +1,5 @@
|
|||||||
import logging
|
import logging
|
||||||
import multiprocessing.dummy
|
import threading
|
||||||
|
|
||||||
import gobject
|
import gobject
|
||||||
gobject.threads_init()
|
gobject.threads_init()
|
||||||
@ -9,7 +9,7 @@ from mopidy import SettingsError
|
|||||||
logger = logging.getLogger('mopidy.utils.process')
|
logger = logging.getLogger('mopidy.utils.process')
|
||||||
|
|
||||||
|
|
||||||
class BaseThread(multiprocessing.dummy.Process):
|
class BaseThread(threading.Thread):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super(BaseThread, self).__init__()
|
super(BaseThread, self).__init__()
|
||||||
# No thread should block process from exiting
|
# No thread should block process from exiting
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user