mirror of
https://github.com/ultrasonic/ultrasonic
synced 2025-02-18 12:40:52 +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();
|
cachedPosition = mediaPlayer.getCurrentPosition();
|
||||||
}
|
}
|
||||||
|
|
||||||
Thread.sleep(50L);
|
Util.sleepQuietly(25L);
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
|
@ -260,7 +260,7 @@ public class StreamProxy implements Runnable
|
|||||||
if (cbSentThisBatch == 0)
|
if (cbSentThisBatch == 0)
|
||||||
{
|
{
|
||||||
Log.d(TAG, String.format("Blocking until more data appears (%d)", cbToSend));
|
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