Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e5783e58 authored by John Reck's avatar John Reck Committed by Android Git Automerger
Browse files

am 2abf0f24: Fix a race condition that could cause lockup

* commit '2abf0f24':
  Fix a race condition that could cause lockup
parents 5a18b4bf 2abf0f24
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -248,11 +248,6 @@ void Caches::clearGarbage() {
void Caches::flush(FlushMode mode) {
    FLUSH_LOGD("Flushing caches (mode %d)", mode);

    // We must stop tasks before clearing caches
    if (mode > kFlushMode_Layers) {
        tasks.stop();
    }

    switch (mode) {
        case kFlushMode_Full:
            textureCache.clear();