diff options
author | Vince Harron <vharron@google.com> | 2016-03-18 16:40:49 -0700 |
---|---|---|
committer | Vince Harron <vharron@google.com> | 2016-03-18 16:40:49 -0700 |
commit | d1731fc950acc5ed1bfb196addc51ea2dd692265 (patch) | |
tree | 7e49fefd34de75427bf64bc02fc92bd083c4cbc9 /apps | |
parent | 26707bffbfbc85ecd0d236bba45ad9a94518f29c (diff) | |
download | android_development-d1731fc950acc5ed1bfb196addc51ea2dd692265.tar.gz android_development-d1731fc950acc5ed1bfb196addc51ea2dd692265.tar.bz2 android_development-d1731fc950acc5ed1bfb196addc51ea2dd692265.zip |
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
Diffstat (limited to 'apps')
-rw-r--r-- | apps/Development/src/com/android/development/CacheAbuser.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/Development/src/com/android/development/CacheAbuser.java b/apps/Development/src/com/android/development/CacheAbuser.java index 489018f32..6c244c360 100644 --- a/apps/Development/src/com/android/development/CacheAbuser.java +++ b/apps/Development/src/com/android/development/CacheAbuser.java @@ -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 { |