From 90656472600d3f936d2d26378457a7a5c71badfa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kjetil=20=C3=98rbekk?= Date: Wed, 25 Apr 2012 11:20:38 +0200 Subject: Don't return expired networks. --- .../src/main/java/com/orbekk/same/directory/DirectoryServiceImpl.java | 1 + 1 file changed, 1 insertion(+) (limited to 'directory') 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 done) { + cleanNetworkList(); NetworkDirectory.Builder directory = NetworkDirectory.newBuilder(); for (NetworkEntry e : networkList) { directory.addNetwork(MasterState.newBuilder() -- cgit v1.2.3