summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 4549118..08eac48 100644
--- a/src/main.c
+++ b/src/main.c
@@ -189,7 +189,12 @@ int main (int argc, char **argv) {
WardrobeSongDestroy (&scrobbleSong);
/* FIXME: pthread_join blocks everything if network connection
* is hung up e.g. */
- pthread_join (playerThread, NULL);
+ void *threadRet;
+ pthread_join (playerThread, &threadRet);
+ /* don't continue playback if thread reports error */
+ if (threadRet != NULL) {
+ curStation = NULL;
+ }
memset (&player, 0, sizeof (player));
}