Commit 7357c65e authored by jiahua.liu's avatar jiahua.liu

Terminal Console quitable

parent 01b05ee9
......@@ -638,9 +638,13 @@ object MiraiConsoleTerminalUI : MiraiConsoleUI {
}
fun exit() {
terminal.exitPrivateMode()
terminal.close()
exitProcess(0)
try {
terminal.exitPrivateMode()
terminal.close()
exitProcess(0)
} catch (ignored: Exception) {
exitProcess(0)
}
}
}
......
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