]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
Remove redundant (and now faulty) check to see if the player is also principal conn.
authorMike Brady <4265913+mikebrady@users.noreply.github.com>
Thu, 21 Sep 2023 15:34:40 +0000 (16:34 +0100)
committerMike Brady <4265913+mikebrady@users.noreply.github.com>
Thu, 21 Sep 2023 15:34:40 +0000 (16:34 +0100)
player.c

index 3a2fb38256a7945f9db31d91066840ee16259627..0cfb3554030b0a9ba5bb57cdfbe4239c0a57edfb 100644 (file)
--- a/player.c
+++ b/player.c
@@ -1778,14 +1778,9 @@ double suggested_volume(rtsp_conn_info *conn) {
 void player_thread_cleanup_handler(void *arg) {
   rtsp_conn_info *conn = (rtsp_conn_info *)arg;
 
-  if ((principal_conn == conn) && (conn != NULL)) {
-    if (config.output->stop) {
-      debug(2, "Connection %d: Stop the output backend.", conn->connection_number);
-      config.output->stop();
-    }
-  } else {
-    if (conn != NULL)
-      debug(1, "Connection %d: this conn is not the principal_conn.", conn->connection_number);
+  if (config.output->stop) {
+    debug(1, "Connection %d: Stop the output backend.", conn->connection_number);
+    config.output->stop();
   }
 
   int oldState;