Skip to content

Commit 09d7a02

Browse files
committed
make synchornized
1 parent 7227fb9 commit 09d7a02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

firebase-common/src/main/java/com/google/firebase/heartbeatinfo/DefaultHeartBeatController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ private DefaultHeartBeatController(
151151

152152
@Override
153153
@NonNull
154-
public HeartBeat getHeartBeatCode(@NonNull String heartBeatTag) {
154+
public synchronized HeartBeat getHeartBeatCode(@NonNull String heartBeatTag) {
155155
long presentTime = System.currentTimeMillis();
156156
HeartBeatInfoStorage storage = storageProvider.get();
157157
boolean shouldSendGlobalHB = storage.shouldSendGlobalHeartBeat(presentTime);

0 commit comments

Comments
 (0)