mirror of https://github.com/icedream/ts3bot.git
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
parent
b6a70ebdc5
commit
ae4288d44a
7
app.iced
7
app.iced
|
@ -18,13 +18,6 @@ removeBB = (str) -> str.replace /\[(\w+)[^\]]*](.*?)\[\/\1]/g, "$2"
|
||||||
|
|
||||||
module.exports =
|
module.exports =
|
||||||
shutdown: (cb) =>
|
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")
|
ts3clientService = services.find("ts3client")
|
||||||
if ts3clientService and ts3clientService.state == "started"
|
if ts3clientService and ts3clientService.state == "started"
|
||||||
await ts3clientService.stop defer(err)
|
await ts3clientService.stop defer(err)
|
||||||
|
|
Loading…
Reference in New Issue