Skip to content

Commit

Permalink
Merge pull request #1538 from bugsnag/PLAT-7524/flush-in-memory-session
Browse files Browse the repository at this point in the history
Flush in memory session first
  • Loading branch information
fractalwrench authored Dec 1, 2021
2 parents 64fdd05 + e051794 commit d85d6a8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
* Bump compileSdkVersion to apiLevel 31
[#1536](https://github.com/bugsnag/bugsnag-android/pull/1536)

### Bug fixes

* Flush in-memory sessions first
[#1538](https://github.com/bugsnag/bugsnag-android/pull/1538)

## 5.16.0 (2021-11-29)

### Bug fixes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,12 +181,10 @@ private boolean trackSessionIfNeeded(final Session session) {
if (deliverSession && session.isTracked().compareAndSet(false, true)) {
currentSession = session;
notifySessionStartObserver(session);
flushAsync();
flushInMemorySession(session);

flushAsync();
return true;
}

return false;
}

Expand Down

0 comments on commit d85d6a8

Please sign in to comment.