Magic fix.

This commit is contained in:
Julien Fontanet 2013-10-07 09:07:57 +02:00
parent 0472c22b08
commit 02ae845bab

@ -61,7 +61,12 @@ Xapi.prototype.call = function (method) {
// @todo Add a limit to avoid trying indefinitely.
return Q.delay(1000).then(helper);
// @todo Magic number!!!
//
// I would like to be able to use a shorter delay but
// for some reason, when we connect to XAPI at a give
// moment, the connection hangs.
return Q.delay(5000).then(helper);
}
// XAPI is sometimes reinitialized and sessions are lost.