Reset playing_thread on connection close. Fixes abrasive/shairport#217

pthread seems to reuse thread identifiers (at least on arm).
Reset it to zero after closing a playing connection, or else future
thread might believe they are playing.
This commit is contained in:
Paul Lietar
2013-06-25 10:57:22 +02:00
parent fd14f2ef7b
commit fc2272a2a8
+1
View File
@@ -708,6 +708,7 @@ respond:
rtp_shutdown();
player_stop();
please_shutdown = 0;
playing_thread = 0;
pthread_mutex_unlock(&playing_mutex);
}
if (auth_nonce)