Cancel any request properly
This commit is contained in:
parent
b3d649a4d9
commit
ed93f4a6c1
|
@ -226,4 +226,9 @@ class RoomDirectoryViewModel @AssistedInject constructor(@Assisted initialState:
|
|||
})
|
||||
}
|
||||
|
||||
override fun onCleared() {
|
||||
super.onCleared()
|
||||
|
||||
currentTask?.cancel()
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue