]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
Fix a bug when interrupting a Classic Airplay session -- don't reset the UDP port...
authorMike Brady <4265913+mikebrady@users.noreply.github.com>
Sun, 25 Jun 2023 16:51:32 +0000 (17:51 +0100)
committerMike Brady <4265913+mikebrady@users.noreply.github.com>
Sun, 25 Jun 2023 16:51:32 +0000 (17:51 +0100)
rtsp.c

diff --git a/rtsp.c b/rtsp.c
index 0b680f8c2e008db95e99a280f6f9e0b0d8e822a7..baf90eec015f7de191ff35a34d2fc9dfb1bbfff4 100644 (file)
--- a/rtsp.c
+++ b/rtsp.c
@@ -4487,7 +4487,7 @@ static void handle_announce(rtsp_conn_info *conn, rtsp_message *req, rtsp_messag
     // now, if this new session did not break in, then it's okay to reset the next UDP ports
     // to the start of the range
 
-    if (get_play_status == 1) { // will be zero if it wasn't waiting to break in
+    if (get_play_status == 0) { // will be zero if it wasn't waiting to break in
       resetFreeUDPPort();
     }