Fix possible threading issue in RetrieveProfileJob.
This commit is contained in:
parent
08abe890ff
commit
a92638e897
1 changed files with 3 additions and 1 deletions
|
@ -501,7 +501,9 @@ public class RetrieveProfileJob extends BaseJob {
|
|||
if (recipient.getProfileKey() == null) return;
|
||||
if (!Util.equals(profileAvatar, recipient.getProfileAvatar())) {
|
||||
SignalDatabase.runPostSuccessfulTransaction(DEDUPE_KEY_RETRIEVE_AVATAR + recipient.getId(), () -> {
|
||||
ApplicationDependencies.getJobManager().add(new RetrieveProfileAvatarJob(recipient, profileAvatar));
|
||||
SignalExecutors.BOUNDED.execute(() -> {
|
||||
ApplicationDependencies.getJobManager().add(new RetrieveProfileAvatarJob(recipient, profileAvatar));
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue