Fix bug with 'CLI.tritonapi' getter creating a TritonApi client multiple times.
This commit is contained in:
parent
a85391f023
commit
5bf78491ff
@ -219,7 +219,7 @@ CLI.prototype.init = function (opts, args, callback) {
|
|||||||
this.configDir = CONFIG_DIR;
|
this.configDir = CONFIG_DIR;
|
||||||
|
|
||||||
this.__defineGetter__('tritonapi', function () {
|
this.__defineGetter__('tritonapi', function () {
|
||||||
if (self._triton === undefined) {
|
if (self._tritonapi === undefined) {
|
||||||
var config = mod_config.loadConfig({
|
var config = mod_config.loadConfig({
|
||||||
configDir: self.configDir
|
configDir: self.configDir
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user