From: Mike Brady <4265913+mikebrady@users.noreply.github.com> Date: Sun, 25 Jun 2023 16:51:32 +0000 (+0100) Subject: Fix a bug when interrupting a Classic Airplay session -- don't reset the UDP port... X-Git-Tag: 4.3~1^2~35 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b0f2fb9a104f461a32c85a4aab73d60f73e3fd81;p=thirdparty%2Fshairport-sync.git Fix a bug when interrupting a Classic Airplay session -- don't reset the UDP port suggestion when you interrupt a session. IOW use different UDP ports for the new session to avoid poisoning the new session. --- diff --git a/rtsp.c b/rtsp.c index 0b680f8c..baf90eec 100644 --- 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(); }