aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/audioOutputs/audioOutput_shout.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/audioOutputs/audioOutput_shout.c b/src/audioOutputs/audioOutput_shout.c
index 5444912c5..3bc8bb456 100644
--- a/src/audioOutputs/audioOutput_shout.c
+++ b/src/audioOutputs/audioOutput_shout.c
@@ -453,7 +453,7 @@ static int myShout_openShoutConn(AudioOutput * audioOutput)
int state;
if (sd->connAttempts != 0 &&
- (t - sd->lastAttempt) < CONN_ATTEMPT_INTERVAL) {
+ (t - sd->lastAttempt) <= CONN_ATTEMPT_INTERVAL) {
return -1;
}
@@ -462,7 +462,7 @@ static int myShout_openShoutConn(AudioOutput * audioOutput)
state = shout_open(sd->shoutConn);
- while (state == SHOUTERR_BUSY && (t - sd->lastAttempt) < sd->timeout) {
+ while (state == SHOUTERR_BUSY && (t - sd->lastAttempt) <= sd->timeout) {
my_usleep(10000);
state = shout_get_connected(sd->shoutConn);
t = time(NULL);