File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
firebase-installations/src/main/java/com/google/firebase/installations Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -293,7 +293,7 @@ private String doGetId() {
293
293
PersistedInstallationEntry prefs = getPrefsWithGeneratedIdMultiProcessSafe ();
294
294
// Execute network calls (CreateInstallations) to the FIS Servers on a separate executor
295
295
// i.e networkExecutor
296
- networkExecutor .execute (() -> doNetworkCall (false ));
296
+ networkExecutor .execute (() -> doNetworkCallIfNecessary (false ));
297
297
return prefs .getFirebaseInstallationId ();
298
298
}
299
299
@@ -318,10 +318,10 @@ private void doGetAuthToken(boolean forceRefresh) {
318
318
triggerOnStateReached (prefs );
319
319
// Execute network calls (CreateInstallations or GenerateAuthToken) to the FIS Servers on
320
320
// a separate executor i.e networkExecutor
321
- networkExecutor .execute (() -> doNetworkCall (forceRefresh ));
321
+ networkExecutor .execute (() -> doNetworkCallIfNecessary (forceRefresh ));
322
322
}
323
323
324
- private void doNetworkCall (boolean forceRefresh ) {
324
+ private void doNetworkCallIfNecessary (boolean forceRefresh ) {
325
325
PersistedInstallationEntry prefs = getMultiProcessSafePrefs ();
326
326
// There are two possible cleanup steps to perform at this stage: the FID may need to
327
327
// be registered with the server or the FID is registered but we need a fresh authtoken.
You can’t perform that action at this time.
0 commit comments