Fix invalid session handling.

This commit is contained in:
Julien Fontanet
2015-06-19 15:15:23 +02:00
parent 49aa5ffccc
commit 95f765055e

View File

@@ -323,8 +323,7 @@ export class Xapi extends EventEmitter {
debug('%s: the session has been reinitialized', this._humanId)
this._sessionId = getNotConnectedPromise()
return this._sessionCall(method, args)
return this.connect().then(() => this._sessionCall(method, args))
})
}