Merge "vold: fix the range of stopped state of idleMaint" into tm-dev
diff --git a/IdleMaint.cpp b/IdleMaint.cpp
index 2bfe3d9..426be58 100644
--- a/IdleMaint.cpp
+++ b/IdleMaint.cpp
@@ -450,17 +450,17 @@
stopGc(paths);
}
+ if (!gc_aborted) {
+ Trim(nullptr);
+ runDevGc();
+ }
+
lk.lock();
idle_maint_stat = IdleMaintStats::kStopped;
lk.unlock();
cv_stop.notify_one();
- if (!gc_aborted) {
- Trim(nullptr);
- runDevGc();
- }
-
if (listener) {
android::os::PersistableBundle extras;
listener->onFinished(0, extras);