Skip to content
Snippets Groups Projects
Commit 6ed9e592 authored by Cédric Moreau's avatar Cédric Moreau
Browse files

[fix] #1008 Potential problem to contact peers

parent e3a5aa45
No related branches found
No related tags found
No related merge requests found
......@@ -474,7 +474,7 @@ function FileDAL(params) {
this.listAllPeersWithStatusNewUPWithtout = () => co(function *() {
const peers = yield that.peerDAL.listAll();
return _.chain(peers).filter((p) => p.status == 'UP').filter((p) => p.pubkey);
return _.chain(peers).filter((p) => p.status == 'UP').filter((p) => p.pubkey).value();
});
this.findPeers = (pubkey) => co(function*() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment