1
0
mirror of https://github.com/mamoe/mirai.git synced 2025-04-15 07:37:08 +08:00

[console] Fix locking; Try to fix \

This commit is contained in:
Karlatemp 2022-11-02 00:06:30 +08:00
parent 4abb3e3703
commit 07000456cf
No known key found for this signature in database
GPG Key ID: BA173CA2B9956C59

View File

@ -242,9 +242,9 @@ internal fun updateTerminalDownloadingProgresses() {
runCatching { downloadingProgressCoroutine?.resumeWith(Result.success(Unit)) }
JLineInputDaemon.suspendReader(false)
terminalExecuteLock.withLock {
JLineInputDaemon.suspendReader(false)
if (terminalDownloadingProgresses.isNotEmpty()) {
val wid = terminal.width
if (wid == 0) { // Run in idea