Clear SDK cache properly (#4396)
* Use close() instead of destroy, because close() is synchronized. * Use new method to clear the SDK cache. * Format file. * Remove the legacy way to clear the SDK cache. * Remove unused import * revert name change
This commit is contained in:
parent
f85abe27fc
commit
93d27735e4
6 changed files with 41 additions and 33 deletions
|
|
@ -167,7 +167,7 @@ class FakeMatrixClient(
|
|||
return 0
|
||||
}
|
||||
|
||||
override suspend fun clearCache() {
|
||||
override suspend fun clearCache() = simulateLongTask {
|
||||
clearCacheLambda()
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue