mirror of
https://github.com/nextcloud/talk-android
synced 2025-03-06 14:27:24 +00: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,7 +804,9 @@ class OfflineFirstChatRepository @Inject constructor(
|
||||
}
|
||||
|
||||
override fun handleOnStop() {
|
||||
scope.cancel()
|
||||
if (this::scope.isInitialized) {
|
||||
scope.cancel()
|
||||
}
|
||||
}
|
||||
|
||||
@Suppress("LongParameterList")
|
||||
|
Loading…
Reference in New Issue
Block a user