Commit a5c4680e authored by Jason Simmons's avatar Jason Simmons Committed by GitHub

Reset the terminal if an exception occurs while handling terminal input in the app runner (#11516)

parent ec9df2f2
...@@ -646,6 +646,9 @@ abstract class ResidentRunner { ...@@ -646,6 +646,9 @@ abstract class ResidentRunner {
final bool handled = await _commonTerminalInputHandler(command); final bool handled = await _commonTerminalInputHandler(command);
if (!handled) if (!handled)
await handleTerminalCommand(command); await handleTerminalCommand(command);
} catch (error, st) {
printError('$error\n$st');
_cleanUpAndExit(null);
} finally { } finally {
_processingUserRequest = false; _processingUserRequest = false;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment