From d7fb957ba70d03c919916b8710f5a59abd980c41 Mon Sep 17 00:00:00 2001 From: gmungoc Date: Mon, 19 Nov 2018 15:13:19 +0000 Subject: [PATCH] JAL-3032 reinstate methods now available in SwingJS --- src/jalview/ext/ensembl/EnsemblRestClient.java | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/jalview/ext/ensembl/EnsemblRestClient.java b/src/jalview/ext/ensembl/EnsemblRestClient.java index fa626cb..5ebfcbf 100644 --- a/src/jalview/ext/ensembl/EnsemblRestClient.java +++ b/src/jalview/ext/ensembl/EnsemblRestClient.java @@ -345,12 +345,9 @@ abstract class EnsemblRestClient extends EnsemblSequenceFetcher connection.setDoInput(true); connection.setDoOutput(multipleIds); - if (!Jalview.isJS()) - { - connection.setUseCaches(false); - connection.setConnectTimeout(CONNECT_TIMEOUT_MS); - connection.setReadTimeout(readTimeout); - } + connection.setUseCaches(false); + connection.setConnectTimeout(CONNECT_TIMEOUT_MS); + connection.setReadTimeout(readTimeout); if (multipleIds) { -- 1.7.10.2