Make sure any JoinedRustRoom is destroyed after use (#4678)
This commit is contained in:
parent
2d189ae775
commit
1904c98c9a
5 changed files with 11 additions and 3 deletions
|
|
@ -639,9 +639,11 @@ class JoinedRustRoom(
|
|||
}
|
||||
}
|
||||
|
||||
override fun close() = destroy()
|
||||
|
||||
override fun destroy() {
|
||||
baseRoom.destroy()
|
||||
liveInnerTimeline.close()
|
||||
liveInnerTimeline.destroy()
|
||||
roomCoroutineScope.cancel()
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -94,6 +94,8 @@ class RustBaseRoom(
|
|||
}
|
||||
}
|
||||
|
||||
override fun close() = destroy()
|
||||
|
||||
override fun destroy() {
|
||||
innerRoom.destroy()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue