Skip to content

Commit 65b3111

Browse files
committed
Fix crash in keyboard controls during a disconnect.
1 parent 3f011a5 commit 65b3111

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

SerialPrograms/Source/Controllers/KeyboardInput/KeyboardInput.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@
44
*
55
*/
66

7+
#include "Common/Cpp/Exceptions.h"
78
#include "Common/Cpp/PanicDump.h"
89
#include "CommonFramework/GlobalSettingsPanel.h"
9-
#include "CommonFramework/Exceptions/ProgramFinishedException.h"
10+
#include "CommonFramework/Logging/Logger.h"
1011
#include "CommonFramework/Options/Environment/PerformanceOptions.h"
1112
#include "Controllers/KeyboardInput/GlobalQtKeyMap.h"
1213
#include "KeyboardInput.h"
@@ -152,9 +153,8 @@ void KeyboardInputController::thread_loop(){
152153
std::swap(last, current);
153154
last_neutral = false;
154155
last_press = now;
155-
}catch (ProgramCancelledException&){
156-
}catch (ProgramFinishedException&){
157-
}catch (InvalidConnectionStateException&){
156+
}catch (Exception& e){
157+
e.log(global_logger_tagged());
158158
}
159159
}while (false);
160160

0 commit comments

Comments
 (0)