mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-23 12:38:33 +00:00
Remove log when enqueuing job within a transaction.
Found the bug I put the logging in for, and now this log happens way to much after the decryption batching.
This commit is contained in:
@@ -61,12 +61,7 @@ public class JobManager implements ConstraintObserver.Notifier {
|
||||
public JobManager(@NonNull Application application, @NonNull Configuration configuration) {
|
||||
this.application = application;
|
||||
this.configuration = configuration;
|
||||
this.executor = ThreadUtil.trace(new FilteredExecutor(configuration.getExecutorFactory().newSingleThreadExecutor("signal-JobManager"), () -> {
|
||||
if (SignalDatabase.inTransaction()) {
|
||||
Log.w(TAG, "Enqueuing a job while in a transaction!", new Throwable());
|
||||
}
|
||||
return ThreadUtil.isMainThread();
|
||||
}));
|
||||
this.executor = ThreadUtil.trace(new FilteredExecutor(configuration.getExecutorFactory().newSingleThreadExecutor("signal-JobManager"), ThreadUtil::isMainThread));
|
||||
this.jobTracker = configuration.getJobTracker();
|
||||
this.jobController = new JobController(application,
|
||||
configuration.getJobStorage(),
|
||||
|
||||
Reference in New Issue
Block a user