mirror of
https://github.com/mamoe/mirai.git
synced 2026-08-22 22:23:32 +08:00
Fix logic of BdhSessionSyncer.hasSession
This commit is contained in:
@@ -35,7 +35,8 @@ internal class BdhSessionSyncer(
|
||||
private val bot: QQAndroidBot
|
||||
) {
|
||||
var bdhSession: CompletableDeferred<BdhSession> = CompletableDeferred()
|
||||
val hasSession: Boolean get() = bdhSession.isCompleted
|
||||
val hasSession: Boolean
|
||||
get() = kotlin.runCatching { bdhSession.getCompleted() }.isSuccess
|
||||
|
||||
fun overrideSession(
|
||||
session: BdhSession,
|
||||
|
||||
Reference in New Issue
Block a user