mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-01 09:06:05 +08:00
Use strong reference to qq in Member
This commit is contained in:
parent
52138ec34d
commit
d97bd5b960
@ -181,13 +181,12 @@ internal class QQImpl(
|
||||
|
||||
@Suppress("MemberVisibilityCanBePrivate")
|
||||
internal class MemberImpl(
|
||||
qq: QQImpl,
|
||||
val qq: QQImpl,
|
||||
group: GroupImpl,
|
||||
override val coroutineContext: CoroutineContext,
|
||||
memberInfo: MemberInfo
|
||||
) : Member() {
|
||||
override val group: GroupImpl by group.unsafeWeakRef()
|
||||
val qq: QQImpl by qq.unsafeWeakRef()
|
||||
|
||||
// region QQ delegate
|
||||
override val id: Long = qq.id
|
||||
|
Loading…
Reference in New Issue
Block a user