Skip to content

Commit 8e28ab6

Browse files
committed
Update naming and thread running
1 parent ab731c9 commit 8e28ab6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

firebase-config/src/main/java/com/google/firebase/remoteconfig/internal/ConfigRealtimeHandler.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,12 @@ private synchronized Runnable createRealtimeHttpClientTask(
7171
@Override
7272
public void run() {
7373
configRealtimeHttpClient.beginRealtimeHttpStream();
74+
boolean isRealtimeClientRunning = true;
75+
while (isRealtimeClientRunning) {
76+
if (Thread.currentThread().isInterrupted()) {
77+
isRealtimeClientRunning = false;
78+
}
79+
}
7480
}
7581
};
7682
}

0 commit comments

Comments
 (0)