Run CoreProcess in the main process

This commit is contained in:
Stein Magnus Jodal 2010-08-20 01:52:20 +02:00
parent f73800f8e4
commit 60bca18b46

View File

@ -31,9 +31,9 @@ def main():
frontend = get_class(settings.FRONTENDS[0])()
frontend.start_server(core_queue)
core = CoreProcess(core_queue, output_class, backend_class, frontend)
core.start()
logger.debug('Main done')
# Explictly call run instead of start, so it runs in this process
core.run()
def parse_options():
parser = optparse.OptionParser(version='Mopidy %s' % get_version())