Skip to content

Commit 3399d75

Browse files
authored
Merge pull request #2082 from iNavFlight/dzikuvx-fix-tab-switching
Fix tab switching
2 parents cfdf68e + 2be9e53 commit 3399d75

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

js/gui.js

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ const FC = require('./fc');
99
const interval = require('./intervals');
1010
const { scaleRangeInt } = require('./helpers');
1111
const i18n = require('./localization');
12+
const mspDeduplicationQueue = require("./msp/mspDeduplicationQueue");
1213

1314
var TABS = {}; // filled by individual tab js file
1415

@@ -90,6 +91,7 @@ GUI_control.prototype.log = function (message) {
9091
// default switch doesn't require callback to be set
9192
GUI_control.prototype.tab_switch_cleanup = function (callback) {
9293
MSP.callbacks_cleanup(); // we don't care about any old data that might or might not arrive
94+
mspDeduplicationQueue.flush();
9395

9496
interval.killAll(['global_data_refresh', 'msp-load-update', 'ltm-connection-check']);
9597

0 commit comments

Comments
 (0)