From ab0bea48a8fa347a20573d25a17bc16f0447d0a8 Mon Sep 17 00:00:00 2001 From: Nathaniel Brandes Date: Tue, 7 Dec 2021 23:53:48 -0800 Subject: [PATCH] Add missed synchronous keyword to DelugeAdapter --- .../org/transdroid/daemon/adapters/deluge/DelugeAdapter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/org/transdroid/daemon/adapters/deluge/DelugeAdapter.java b/app/src/main/java/org/transdroid/daemon/adapters/deluge/DelugeAdapter.java index 42fdd5b2..4203dfd8 100644 --- a/app/src/main/java/org/transdroid/daemon/adapters/deluge/DelugeAdapter.java +++ b/app/src/main/java/org/transdroid/daemon/adapters/deluge/DelugeAdapter.java @@ -574,7 +574,7 @@ public class DelugeAdapter implements IDaemonAdapter { * * @throws DaemonException On missing settings */ - private void initialise() throws DaemonException { + private synchronized void initialise() throws DaemonException { if(httpclient == null) { httpclient = HttpHelper.createStandardHttpClient(settings, settings.getUsername() != null && !settings.getUsername().equals("")); httpclient.addRequestInterceptor(HttpHelper.gzipRequestInterceptor);