cleaner api shutdown
This commit is contained in:
parent
567952d91d
commit
5f1325c7aa
1 changed files with 2 additions and 7 deletions
|
@ -84,12 +84,7 @@ def quit(data):
|
||||||
returns {
|
returns {
|
||||||
}
|
}
|
||||||
'''
|
'''
|
||||||
'''
|
import state
|
||||||
import server
|
state.main.stop()
|
||||||
server.shutdown()
|
|
||||||
'''
|
|
||||||
import settings
|
|
||||||
subprocess.Popen([os.path.join(settings.base_dir, 'ctl'), 'stop'],
|
|
||||||
close_fds=True, start_new_session=True)
|
|
||||||
return {}
|
return {}
|
||||||
actions.register(quit, cache=False)
|
actions.register(quit, cache=False)
|
||||||
|
|
Loading…
Reference in a new issue