mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-17 21:35:44 +03:00
cleanup all timeouts on disconnect, fixes hanging CLI cleanup on hot-disconnect
This commit is contained in:
parent
a7975883ee
commit
785109e9e2
1 changed files with 1 additions and 3 deletions
|
@ -19,11 +19,9 @@ $(document).ready(function() {
|
||||||
|
|
||||||
serial.connect(selected_port, {bitrate: selected_baud}, onOpen);
|
serial.connect(selected_port, {bitrate: selected_baud}, onOpen);
|
||||||
} else {
|
} else {
|
||||||
// Disable any active "data pulling" timer
|
GUI.timeout_kill_all();
|
||||||
GUI.interval_kill_all();
|
GUI.interval_kill_all();
|
||||||
|
|
||||||
GUI.tab_switch_cleanup();
|
GUI.tab_switch_cleanup();
|
||||||
GUI.timeout_remove('connecting');
|
|
||||||
|
|
||||||
serial.disconnect(onClosed);
|
serial.disconnect(onClosed);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue