diff --git a/app/src/main/java/io/legado/app/ui/book/cache/CacheViewModel.kt b/app/src/main/java/io/legado/app/ui/book/cache/CacheViewModel.kt index 89e124ba8..6e7141cab 100644 --- a/app/src/main/java/io/legado/app/ui/book/cache/CacheViewModel.kt +++ b/app/src/main/java/io/legado/app/ui/book/cache/CacheViewModel.kt @@ -122,9 +122,7 @@ class CacheViewModel(application: Application) : BaseViewModel(application) { exportMsg[book.bookUrl] = context.getString(R.string.export_success) upAdapterLiveData.postValue(book.bookUrl) }.onFinally { - mutex.withLock { - exportNumber-- - } + exportNumber-- } } @@ -287,9 +285,7 @@ class CacheViewModel(application: Application) : BaseViewModel(application) { exportMsg[book.bookUrl] = context.getString(R.string.export_success) upAdapterLiveData.postValue(book.bookUrl) }.onFinally { - mutex.withLock { - exportNumber-- - } + exportNumber-- } }