JAL-3878 Clear services list on reload.
authorMateusz Warowny <mmzwarowny@dundee.ac.uk>
Fri, 25 Mar 2022 17:52:05 +0000 (18:52 +0100)
committerMateusz Warowny <mmzwarowny@dundee.ac.uk>
Fri, 25 Mar 2022 17:52:05 +0000 (18:52 +0100)
src/jalview/ws2/client/api/AbstractWebServiceDiscoverer.java

index 965abca..27a6660 100644 (file)
@@ -145,7 +145,7 @@ public abstract class AbstractWebServiceDiscoverer implements WebServiceDiscover
         CompletableFuture<List<WebService<?>>> task = oldTask
             .handleAsync((_r, _e) -> {
               Cache.log.info("Reloading services for " + this);
-              fireServicesChanged(Collections.emptyList());
+              fireServicesChanged(services = Collections.emptyList());
               var allServices = new ArrayList<WebService<?>>();
               for (var url : getUrls())
               {