Skip to content

Commit

Permalink
Fix the unlinking/removing sessions order (#3683)
Browse files Browse the repository at this point in the history
  • Loading branch information
keianhzo authored and bluemarvin committed Jul 15, 2020
1 parent feabcb4 commit 7e8fa9e
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -442,11 +442,11 @@ public void suspend() {
return;
}

mSessionChangeListeners.forEach(listener -> listener.onSessionRemoved(mState.mId));

Log.d(LOGTAG, "Suspending Session: " + mState.mId);
closeSession(mState);
mState.mSession = null;

mSessionChangeListeners.forEach(listener -> listener.onSessionRemoved(mState.mId));
}

private boolean shouldLoadDefaultPage(@NonNull SessionState aState) {
Expand Down

0 comments on commit 7e8fa9e

Please sign in to comment.