fix(xen-api/connect): dont stay disconnecting on failure
This commit is contained in:
parent
e1da08ba38
commit
5d6b37f81a
@ -244,7 +244,7 @@ export class Xapi extends EventEmitter {
|
|||||||
debug('%s: connected', this._humanId)
|
debug('%s: connected', this._humanId)
|
||||||
this.emit(CONNECTED)
|
this.emit(CONNECTED)
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this._sessionId = null
|
ignoreErrors.call(this.disconnect())
|
||||||
|
|
||||||
throw error
|
throw error
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user