mirror of
https://github.com/vector-im/element-android.git
synced 2024-11-16 02:05:06 +08:00
There is no need to call job.cancel() when we are using viewModelScope()
This commit is contained in:
parent
2e52f429fb
commit
9f1e327fa5
1
changelog.d/4602.misc
Normal file
1
changelog.d/4602.misc
Normal file
@ -0,0 +1 @@
|
||||
There is no need to call job.cancel() when we are using viewModelScope()
|
@ -143,7 +143,6 @@ class SearchViewModel @AssistedInject constructor(
|
||||
}
|
||||
|
||||
override fun onCleared() {
|
||||
currentTask?.cancel()
|
||||
super.onCleared()
|
||||
}
|
||||
}
|
||||
|
@ -233,7 +233,6 @@ class RoomDirectoryViewModel @AssistedInject constructor(
|
||||
}
|
||||
|
||||
override fun onCleared() {
|
||||
currentJob?.cancel()
|
||||
super.onCleared()
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user