Cancel any request properly

This commit is contained in:
Benoit Marty 2019-09-12 17:17:54 +02:00
parent b3d649a4d9
commit ed93f4a6c1
1 changed files with 5 additions and 0 deletions

View File

@ -226,4 +226,9 @@ class RoomDirectoryViewModel @AssistedInject constructor(@Assisted initialState:
})
}
override fun onCleared() {
super.onCleared()
currentTask?.cancel()
}
}