summaryrefslogtreecommitdiff
path: root/directory/src
diff options
context:
space:
mode:
authorKjetil Ørbekk <kjetil.orbekk@gmail.com>2012-04-25 11:20:38 +0200
committerKjetil Ørbekk <kjetil.orbekk@gmail.com>2012-04-25 11:20:38 +0200
commit90656472600d3f936d2d26378457a7a5c71badfa (patch)
treec837b2d72a70bc76a6234cbb2a1e89904fdaa831 /directory/src
parent0e101c89d69c13d8d14229f25e2a5e1383887862 (diff)
Don't return expired networks.
Diffstat (limited to 'directory/src')
-rw-r--r--directory/src/main/java/com/orbekk/same/directory/DirectoryServiceImpl.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/directory/src/main/java/com/orbekk/same/directory/DirectoryServiceImpl.java b/directory/src/main/java/com/orbekk/same/directory/DirectoryServiceImpl.java
index 317e4a9..068293d 100644
--- a/directory/src/main/java/com/orbekk/same/directory/DirectoryServiceImpl.java
+++ b/directory/src/main/java/com/orbekk/same/directory/DirectoryServiceImpl.java
@@ -48,6 +48,7 @@ public class DirectoryServiceImpl extends Services.Directory {
@Override
public void getNetworks(RpcController controller, Empty request,
RpcCallback<NetworkDirectory> done) {
+ cleanNetworkList();
NetworkDirectory.Builder directory = NetworkDirectory.newBuilder();
for (NetworkEntry e : networkList) {
directory.addNetwork(MasterState.newBuilder()