Merge pull request #4603 from vector-im/feature/aris/remove_not_needed_job_cancel_4602
There is no need to call job.cancel() when we are using viewModelScope()
This commit is contained in:
commit
fa256cca25
|
@ -0,0 +1 @@
|
|||
There is no need to call job.cancel() when we are using viewModelScope()
|
|
@ -141,9 +141,4 @@ class SearchViewModel @AssistedInject constructor(
|
|||
)
|
||||
}
|
||||
}
|
||||
|
||||
override fun onCleared() {
|
||||
currentTask?.cancel()
|
||||
super.onCleared()
|
||||
}
|
||||
}
|
||||
|
|
|
@ -231,9 +231,4 @@ class RoomDirectoryViewModel @AssistedInject constructor(
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
override fun onCleared() {
|
||||
currentJob?.cancel()
|
||||
super.onCleared()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue