mirror of https://github.com/icedream/ts3bot.git
Delay Blackbox availability handling.
Allow the main code to handle this case instead.develop
parent
ae4288d44a
commit
ee9bd9c0fc
|
@ -4,7 +4,7 @@ services = require("../services")
|
||||||
StreamSplitter = require("stream-splitter")
|
StreamSplitter = require("stream-splitter")
|
||||||
require_bin = require("../require_bin")
|
require_bin = require("../require_bin")
|
||||||
|
|
||||||
blackboxBinPath = require_bin "blackbox"
|
blackboxBinPath = require_bin "blackbox", false
|
||||||
|
|
||||||
module.exports = class BlackBoxService extends services.Service
|
module.exports = class BlackBoxService extends services.Service
|
||||||
dependencies: [
|
dependencies: [
|
||||||
|
@ -12,6 +12,10 @@ module.exports = class BlackBoxService extends services.Service
|
||||||
]
|
]
|
||||||
constructor: -> super "BlackBox",
|
constructor: -> super "BlackBox",
|
||||||
start: (cb) ->
|
start: (cb) ->
|
||||||
|
if not blackboxBinPath?
|
||||||
|
cb? new Error "Blackbox not available."
|
||||||
|
return
|
||||||
|
|
||||||
if @process
|
if @process
|
||||||
cb? null, @process
|
cb? null, @process
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue