diff --git a/static/js/modes/morse.js b/static/js/modes/morse.js index 69d250f..860d03d 100644 --- a/static/js/modes/morse.js +++ b/static/js/modes/morse.js @@ -421,6 +421,8 @@ var MorseMode = (function () { .then(function (r) { return parseJsonSafe(r); }) .then(function (data) { if (!data || typeof data !== 'object') return; + // Guard against in-flight polls that were dispatched before stop + if (state.stopPromise || state.lifecycle === 'stopping') return; if (data.running) { if (data.state === 'starting') {