Skip to content

Commit 6ecf57f

Browse files
committed
Move aqs notify earlier
1 parent fb07663 commit 6ecf57f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

firebase-crashlytics/src/main/java/com/google/firebase/crashlytics/internal/common/CrashlyticsController.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,11 @@ synchronized void handleUncaughtException(
190190
Logger.getLogger()
191191
.d("Handling uncaught " + "exception \"" + ex + "\" from thread " + thread.getName());
192192

193+
// Notify the Firebase Sessions SDK that a fatal crash has occurred.
194+
if (!isOnDemand) {
195+
CrashEventReceiver.notifyCrashOccurred();
196+
}
197+
193198
// Capture the time that the crash occurs and close over it so that the time doesn't
194199
// reflect when we get around to executing the task later.
195200
final long timestampMillis = System.currentTimeMillis();
@@ -217,11 +222,6 @@ public Task<Void> call() throws Exception {
217222
doCloseSessions(settingsProvider);
218223
doOpenSession(new CLSUUID().getSessionId(), isOnDemand);
219224

220-
// Notify the Firebase Sessions SDK that a fatal crash has occurred.
221-
if (!isOnDemand) {
222-
CrashEventReceiver.notifyCrashOccurred();
223-
}
224-
225225
// If automatic data collection is disabled, we'll need to wait until the next run
226226
// of the app.
227227
if (!dataCollectionArbiter.isAutomaticDataCollectionEnabled()) {

0 commit comments

Comments
 (0)