Hack to avoid usage of exhausted thread pool

This commit is contained in:
Mikel 2017-08-02 02:09:57 +01:00
parent 946f4f2ac2
commit 584a030def

View file

@ -15,6 +15,7 @@ import android.text.TextUtils;
import java.io.IOException;
import java.util.Date;
import java.util.concurrent.Executors;
import fr.free.nrw.commons.CommonsApplication;
import fr.free.nrw.commons.HandlerService;
@ -162,6 +163,6 @@ public class UploadController {
uploadService.queue(UploadService.ACTION_UPLOAD_FILE, contribution);
onComplete.onUploadStarted(contribution);
}
}.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
}.executeOnExecutor(Executors.newFixedThreadPool(1)); // TODO remove this by using a sensible thread handling strategy
}
}