mirror of
https://github.com/Aviortheking/Neo-Store.git
synced 2025-06-17 04:49:20 +00:00
Fix: Memory Leak while syncing repo
This commit is contained in:
@ -348,7 +348,7 @@ class SyncService : ConnectionService<SyncService.Binder>() {
|
||||
val unstable = Preferences[Preferences.Key.UpdateUnstable]
|
||||
lateinit var disposable: Disposable
|
||||
disposable = RepositoryUpdater
|
||||
.update(repository, unstable) { stage, progress, total ->
|
||||
.update(this, repository, unstable) { stage, progress, total ->
|
||||
if (!disposable.isDisposed) {
|
||||
stateSubject.onNext(
|
||||
State.Syncing(
|
||||
|
Reference in New Issue
Block a user