From 785109e9e207f7f6e689f9e813f3d18ae3f1e4bd Mon Sep 17 00:00:00 2001 From: cTn Date: Wed, 2 Jul 2014 13:55:35 +0200 Subject: [PATCH] cleanup all timeouts on disconnect, fixes hanging CLI cleanup on hot-disconnect --- js/serial_backend.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/js/serial_backend.js b/js/serial_backend.js index bc652686fd..9ddff2033d 100644 --- a/js/serial_backend.js +++ b/js/serial_backend.js @@ -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);