mirror of
https://github.com/mamoe/mirai.git
synced 2025-03-03 15:10:14 +08:00
[console] Fix locking; Try to fix \ #2322
This commit is contained in:
parent
4abb3e3703
commit
07000456cf
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user