1
0
Fork 0
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:
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);
} 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);