From 5bf1c135198cafbfa48e3a641b3c8b6b7b0cc33a Mon Sep 17 00:00:00 2001 From: Mateusz Warowny Date: Fri, 24 Sep 2021 18:05:44 +0200 Subject: [PATCH] JAL-3878 Fire service changed event after discovery task is done. --- src/jalview/ws2/slivka/SlivkaWSDiscoverer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jalview/ws2/slivka/SlivkaWSDiscoverer.java b/src/jalview/ws2/slivka/SlivkaWSDiscoverer.java index f2dd9ee..b55035b 100644 --- a/src/jalview/ws2/slivka/SlivkaWSDiscoverer.java +++ b/src/jalview/ws2/slivka/SlivkaWSDiscoverer.java @@ -132,6 +132,7 @@ public class SlivkaWSDiscoverer implements WebServiceDiscoverer reloadServices(); return SlivkaWSDiscoverer.this; }); + task.thenRun(() -> fireServicesChanged(getServices())); discoveryTasks.add(task); return task; } @@ -180,7 +181,6 @@ public class SlivkaWSDiscoverer implements WebServiceDiscoverer } this.services = allServices; Cache.log.info("Reloading slivka services finished"); - fireServicesChanged(getServices()); return allServices; } -- 1.7.10.2