Fix for IllegalMonitorStateException in Cache Abuser

AsyncTask.wait was being called outside of a synchronize block,
causing an IllegalMonitorStateException.  This replaces the wait
with a Thread.sleep.

BUG=b.android.com/203846

Change-Id: Ib370f702c1e0f76657292955de2406ce7f065e69
This commit is contained in:
Vince Harron
2016-03-18 16:40:49 -07:00
parent 26707bffbf
commit d1731fc950

View File

@@ -78,7 +78,7 @@ public class CacheAbuser extends Activity {
} catch (IOException e) {
Log.w("CacheAbuser", "Write failed to " + file + ": " + e);
try {
wait(5*1000);
Thread.sleep(5*1000);
} catch (InterruptedException e1) {
}
} finally {