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 {
|
||||
}
|
||||
'''
|
||||
'''
|
||||
import server
|
||||
server.shutdown()
|
||||
'''
|
||||
import settings
|
||||
subprocess.Popen([os.path.join(settings.base_dir, 'ctl'), 'stop'],
|
||||
close_fds=True, start_new_session=True)
|
||||
import state
|
||||
state.main.stop()
|
||||
return {}
|
||||
actions.register(quit, cache=False)
|
||||
|
|
Loading…
Reference in a new issue