Skip to content

Commit

Permalink
Merge pull request Expensify#27199 from GItGudRatio/26906-outdated-va…
Browse files Browse the repository at this point in the history
…lues

Distance: fix outdated values for onyx connection
  • Loading branch information
arosiclair authored Sep 19, 2023
2 parents dc82b88 + 92849a0 commit d1b48ce
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/libs/actions/MapboxToken.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,15 @@ const stop = () => {
console.debug('[MapboxToken] Stopping all listeners and timers');
if (connectionIDForToken) {
Onyx.disconnect(connectionIDForToken);
connectionIDForToken = null;
}
if (connectionIDForNetwork) {
Onyx.disconnect(connectionIDForNetwork);
connectionIDForNetwork = null;
}
if (appStateSubscription) {
appStateSubscription.remove();
appStateSubscription = null;
}
clearTimeout(refreshTimeoutID);
};
Expand Down

0 comments on commit d1b48ce

Please # to comment.