Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
Prevent duplicated setActive(false) calls (#3376)
Browse files Browse the repository at this point in the history
  • Loading branch information
MortimerGoro authored May 14, 2020
1 parent ff61feb commit 9b9d7c6
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -767,6 +767,12 @@ public void goForward() {
}

public void setActive(boolean aActive) {
if (!aActive && mState.mSession != null && !mState.isActive()) {
// Prevent duplicated setActive(false) calls. There is a GV
// bug that makes the session not to be resumed correctly.
// See https://github.com/MozillaReality/FirefoxReality/issues/3375.
return;
}
// Flush the events queued while the session was inactive
if (mState.mSession != null && !mState.isActive() && aActive) {
flushQueuedEvents();
Expand Down

0 comments on commit 9b9d7c6

Please sign in to comment.