From: Mateusz Warowny Date: Fri, 25 Mar 2022 17:52:05 +0000 (+0100) Subject: JAL-3878 Clear services list on reload. X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=88583a63b770eaa55a17f6fae6f1c57e1dbb1666;p=jalview.git JAL-3878 Clear services list on reload. --- diff --git a/src/jalview/ws2/client/api/AbstractWebServiceDiscoverer.java b/src/jalview/ws2/client/api/AbstractWebServiceDiscoverer.java index 965abca..27a6660 100644 --- a/src/jalview/ws2/client/api/AbstractWebServiceDiscoverer.java +++ b/src/jalview/ws2/client/api/AbstractWebServiceDiscoverer.java @@ -145,7 +145,7 @@ public abstract class AbstractWebServiceDiscoverer implements WebServiceDiscover CompletableFuture>> task = oldTask .handleAsync((_r, _e) -> { Cache.log.info("Reloading services for " + this); - fireServicesChanged(Collections.emptyList()); + fireServicesChanged(services = Collections.emptyList()); var allServices = new ArrayList>(); for (var url : getUrls()) {