mirror of
https://github.com/ultrasonic/ultrasonic
synced 2025-02-27 00:47:48 +01:00
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…
x
Reference in New Issue
Block a user