mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-09 09:50:16 +08:00
Fix logic of BdhSessionSyncer.hasSession
This commit is contained in:
parent
3e3be23397
commit
791e43819c
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user