Reset the terminal if an exception occurs while handling terminal input in the app runner (#11516)
This commit is contained in:
@@ -646,6 +646,9 @@ abstract class ResidentRunner {
|
||||
final bool handled = await _commonTerminalInputHandler(command);
|
||||
if (!handled)
|
||||
await handleTerminalCommand(command);
|
||||
} catch (error, st) {
|
||||
printError('$error\n$st');
|
||||
_cleanUpAndExit(null);
|
||||
} finally {
|
||||
_processingUserRequest = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user