mirror of
https://gitlab.com/ultrasonic/ultrasonic.git
synced 2025-04-24 12:50:58 +03:00
Use Util.sleepQuietly() for all sleeps
This commit is contained in:
parent
50826eaece
commit
687d8fcdc4
src/com/thejoshwa/ultrasonic/androidapp
@ -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