Skip to content

Commit 10cab33

Browse files
committed
Correct lock on getNextAvailableSynchronizer.
1 parent 1234bc9 commit 10cab33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/sdk/server/src/main/java/com/launchdarkly/sdk/server/SynchronizerStateManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public void resetSourceIndex() {
4949
* @return the next synchronizer factory to use, or null if there are no more available synchronizers.
5050
*/
5151
public SynchronizerFactoryWithState getNextAvailableSynchronizer() {
52-
synchronized (synchronizers) {
52+
synchronized (activeSourceLock) {
5353
SynchronizerFactoryWithState factory = null;
5454

5555
// There is at least one available factory.

0 commit comments

Comments
 (0)