From c6e8a98610d4cf985d33c89be14e31652fa156d4 Mon Sep 17 00:00:00 2001 From: fuwa Date: Wed, 27 Nov 2019 16:48:52 +0800 Subject: [PATCH] fix clean up peers --- cyberwow/lib/controller/rpc/rpcView.dart | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cyberwow/lib/controller/rpc/rpcView.dart b/cyberwow/lib/controller/rpc/rpcView.dart index b22a8c1..b4c5ae5 100644 --- a/cyberwow/lib/controller/rpc/rpcView.dart +++ b/cyberwow/lib/controller/rpc/rpcView.dart @@ -101,8 +101,7 @@ Map rpcPeerView(Map x) { for (var k in keys) k: _conn[k] }; - - final _cleanupConn = x..removeWhere + final _cleanupConn = _sortedConn..removeWhere ( (k,v) => k == 'pruning_seed' && x[k] == 0 );