Fix bug with 'CLI.tritonapi' getter creating a TritonApi client multiple times.

This commit is contained in:
Trent Mick 2015-11-03 14:39:18 -08:00
parent a85391f023
commit 5bf78491ff

View File

@ -219,7 +219,7 @@ CLI.prototype.init = function (opts, args, callback) {
this.configDir = CONFIG_DIR;
this.__defineGetter__('tritonapi', function () {
if (self._triton === undefined) {
if (self._tritonapi === undefined) {
var config = mod_config.loadConfig({
configDir: self.configDir
});