mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-16 12:55:13 +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);
|
||||
} else {
|
||||
// Disable any active "data pulling" timer
|
||||
GUI.timeout_kill_all();
|
||||
GUI.interval_kill_all();
|
||||
|
||||
GUI.tab_switch_cleanup();
|
||||
GUI.timeout_remove('connecting');
|
||||
|
||||
serial.disconnect(onClosed);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue