Use Util.sleepQuietly() for all sleeps
This commit is contained in:
parent
50826eaece
commit
687d8fcdc4
|
@ -2182,7 +2182,7 @@ public class DownloadServiceImpl extends Service implements DownloadService
|
|||
cachedPosition = mediaPlayer.getCurrentPosition();
|
||||
}
|
||||
|
||||
Thread.sleep(50L);
|
||||
Util.sleepQuietly(25L);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
|
|
@ -260,7 +260,7 @@ public class StreamProxy implements Runnable
|
|||
if (cbSentThisBatch == 0)
|
||||
{
|
||||
Log.d(TAG, String.format("Blocking until more data appears (%d)", cbToSend));
|
||||
Thread.sleep(1000);
|
||||
Util.sleepQuietly(1000L);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue