1
0
Fork 0
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:
cTn 2014-07-02 13:55:35 +02:00
parent a7975883ee
commit 785109e9e2

View file

@ -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);