summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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()