Use strong reference to qq in Member

This commit is contained in:
Him188 2020-03-02 15:59:30 +08:00
parent 52138ec34d
commit d97bd5b960

View File

@ -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