From 6ed9e592c5511848dd4605d0dadf619d1aa47578 Mon Sep 17 00:00:00 2001 From: cgeek <cem.moreau@gmail.com> Date: Tue, 20 Jun 2017 17:43:19 +0200 Subject: [PATCH] [fix] #1008 Potential problem to contact peers --- app/lib/dal/fileDAL.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/lib/dal/fileDAL.js b/app/lib/dal/fileDAL.js index 9742f9f40..05a57b30e 100644 --- a/app/lib/dal/fileDAL.js +++ b/app/lib/dal/fileDAL.js @@ -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*() { -- GitLab