Browse Source

Merge pull request #601 from ImperatorPrime/addMissingSync

Adding sync issue cleanup
pull/603/head
Eric Kok 2 years ago committed by GitHub
parent
commit
64bf458e6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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