Browse Source

Add missed synchronous keyword to DelugeAdapter

pull/601/head
Nathaniel Brandes 3 years ago
parent
commit
ab0bea48a8
  1. 2
      app/src/main/java/org/transdroid/daemon/adapters/deluge/DelugeAdapter.java

2
app/src/main/java/org/transdroid/daemon/adapters/deluge/DelugeAdapter.java

@ -574,7 +574,7 @@ public class DelugeAdapter implements IDaemonAdapter { @@ -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);

Loading…
Cancel
Save