Merge pull request #2911 from cmgustavo/bug/online-event-reconnect-02

Little fixes on reconnecting event
This commit is contained in:
Matias Alejo Garcia 2015-06-25 15:53:55 -03:00
commit 210774a1e0

View file

@ -667,11 +667,9 @@ angular.module('copayApp.controllers').controller('indexController', function($r
$rootScope.$on('Local/Online', function(event) {
$log.debug('### Online event');
if (self.isOffline) {
self.debouncedUpdate();
self.isOffline = false;
self.offLineSince = null;
}
if (self.isOffline) self.debouncedUpdate();
self.isOffline = false;
self.offLineSince = null;
});
self.offLineSince = null;;