Remove left-over explicit API shutdown code.

The code removed in this commit was not removed in the process of
migrating to the new HTTP-server-less code. It causes additional errors
and is generally useless now.
develop
Icedream 2015-11-02 12:42:37 +01:00
parent b6a70ebdc5
commit ae4288d44a
1 changed files with 0 additions and 7 deletions

View File

@ -18,13 +18,6 @@ removeBB = (str) -> str.replace /\[(\w+)[^\]]*](.*?)\[\/\1]/g, "$2"
module.exports =
shutdown: (cb) =>
apiService = services.find("api")
if apiService and apiService.state == "started"
await apiService.stop defer(err)
if err
cb? new Error "Could not stop API"
return
ts3clientService = services.find("ts3client")
if ts3clientService and ts3clientService.state == "started"
await ts3clientService.stop defer(err)