Skip to content

Commit

Permalink
修复推送到QQ不会艾特的问题(fix #313)
Browse files Browse the repository at this point in the history
  • Loading branch information
CuteReimu committed Dec 19, 2024
1 parent e958da8 commit ef94460
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/kotlin/QQPusher.kt
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,11 @@ object QQPusher {
map[name] = "$roleName,$identity,$result,$rank,$newScore($addScoreStr)"
}
val text = lines.joinToString(separator = "\n")
val at = runBlocking {
val at = if (pushToQQ) runBlocking {
mu.withLock {
notifyQueueOnEnd.toLongArray().apply { notifyQueueOnEnd.clear() }
}
}
} else LongArray(0)
@OptIn(DelicateCoroutinesApi::class)
GlobalScope.launch {
try {
Expand Down

0 comments on commit ef94460

Please sign in to comment.