disconnect working

This commit is contained in:
Manuel Araoz 2014-05-09 14:44:05 -03:00
commit 1b87083579
3 changed files with 8 additions and 4 deletions

View file

@ -96,6 +96,9 @@ angular.module('copay.controllerUtils')
}
$rootScope.$digest();
});
w.on('disconnect', function(peerID) {
$rootScope.$digest();
});
w.on('close', root.onErrorDigest);
w.netStart();
};