mirror of
https://github.com/nextcloud/talk-android
synced 2025-07-09 13:59:48 +01:00
Merge pull request #4739 from nextcloud/bugfix/noid/avoidUninitializedScopeInOnStop
check if scope is initialized before canceling
This commit is contained in:
commit
6e5f830fc5
@ -804,8 +804,10 @@ class OfflineFirstChatRepository @Inject constructor(
|
||||
}
|
||||
|
||||
override fun handleOnStop() {
|
||||
if (this::scope.isInitialized) {
|
||||
scope.cancel()
|
||||
}
|
||||
}
|
||||
|
||||
@Suppress("LongParameterList")
|
||||
override suspend fun sendChatMessage(
|
||||
|
Loading…
Reference in New Issue
Block a user