mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-22 01:40:07 +01:00
Acquire group lock before processing a message batch.
This commit is contained in:
@@ -10,7 +10,7 @@ import java.util.concurrent.TimeUnit;
|
||||
import java.util.concurrent.locks.Lock;
|
||||
import java.util.concurrent.locks.ReentrantLock;
|
||||
|
||||
final class GroupsV2ProcessingLock {
|
||||
public final class GroupsV2ProcessingLock {
|
||||
|
||||
private static final String TAG = Log.tag(GroupsV2ProcessingLock.class);
|
||||
|
||||
@@ -20,7 +20,7 @@ final class GroupsV2ProcessingLock {
|
||||
private static final Lock lock = new ReentrantLock();
|
||||
|
||||
@WorkerThread
|
||||
static Closeable acquireGroupProcessingLock() throws GroupChangeBusyException {
|
||||
public static Closeable acquireGroupProcessingLock() throws GroupChangeBusyException {
|
||||
return acquireGroupProcessingLock(5000);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user