diff options
author | Kjetil Ørbekk <kjetil.orbekk@gmail.com> | 2012-04-25 11:20:38 +0200 |
---|---|---|
committer | Kjetil Ørbekk <kjetil.orbekk@gmail.com> | 2012-04-25 11:20:38 +0200 |
commit | 90656472600d3f936d2d26378457a7a5c71badfa (patch) | |
tree | c837b2d72a70bc76a6234cbb2a1e89904fdaa831 /directory/src | |
parent | 0e101c89d69c13d8d14229f25e2a5e1383887862 (diff) |
Don't return expired networks.
Diffstat (limited to 'directory/src')
-rw-r--r-- | directory/src/main/java/com/orbekk/same/directory/DirectoryServiceImpl.java | 1 |
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() |