From: Mateusz Warowny Date: Fri, 24 Sep 2021 16:05:44 +0000 (+0200) Subject: JAL-3878 Fire service changed event after discovery task is done. X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=5bf1c135198cafbfa48e3a641b3c8b6b7b0cc33a;p=jalview.git JAL-3878 Fire service changed event after discovery task is done. --- 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; }