diff options
author | Lars-Dominik Braun <PromyLOPh@lavabit.com> | 2009-05-16 10:52:32 +0200 |
---|---|---|
committer | Lars-Dominik Braun <PromyLOPh@lavabit.com> | 2009-05-16 10:52:32 +0200 |
commit | 279f3ba93b729684e54300352c59523bd05e54bc (patch) | |
tree | 5c48e03bd1eb8b512896730f7e6af97ec50c1624 | |
parent | 1a6b21e0c79e6abe20708b6ce7a8bd37b8b6c188 (diff) | |
download | pianobar-windows-279f3ba93b729684e54300352c59523bd05e54bc.tar.gz pianobar-windows-279f3ba93b729684e54300352c59523bd05e54bc.tar.bz2 pianobar-windows-279f3ba93b729684e54300352c59523bd05e54bc.zip |
Retry on temporary http failure (timeout e.g.)
-rw-r--r-- | src/player.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/player.c b/src/player.c index 46c3fff..abbd5c7 100644 --- a/src/player.c +++ b/src/player.c @@ -449,7 +449,8 @@ void *BarPlayerThread (void *data) { snprintf (extraHeaders, sizeof (extraHeaders), "Range: bytes=%u-\r\n", player->bytesReceived); wRet = WaitressFetchCall (&player->waith); - } while (wRet == WAITRESS_RET_PARTIAL_FILE); + } while (wRet == WAITRESS_RET_PARTIAL_FILE || + wRet == WAITRESS_RET_TIMEOUT); switch (player->audioFormat) { #ifdef ENABLE_FAAD |