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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user