Fix back off reset.

This commit is contained in:
Julien Fontanet 2015-02-11 15:17:42 +01:00
parent a6db0f6fd9
commit cd3c031df1

View File

@ -222,6 +222,9 @@ function tryConnect() {
function onSuccessfulConnection() {
/* jshint validthis: true */
// Reset back off.
this._backOff = fibonacci(1e3);
// FIXME: session.signIn() should work with both token and password.
return this._api.call(
this._auth.token ?