]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
satip server: rearm the session timeout timer in TCP data mode
authorJaroslav Kysela <perex@perex.cz>
Mon, 7 Aug 2017 12:12:37 +0000 (14:12 +0200)
committerJaroslav Kysela <perex@perex.cz>
Mon, 9 Oct 2017 13:46:19 +0000 (15:46 +0200)
From: Mono Polimorph

src/satip/rtsp.c

index 74460e1cafc6e492edd873a8af6b07eef0646fc7..91c604f3af1ff0141d13cb2e28782042a2fa5bd0 100644 (file)
@@ -239,7 +239,7 @@ rtsp_session_timer_cb(void *aux)
 static inline void
 rtsp_rearm_session_timer(session_t *rs)
 {
-  if (!rs->shutdown_on_close) {
+  if (!rs->shutdown_on_close || (rs->rtp_peer_port == RTSP_TCP_DATA)) {
     pthread_mutex_lock(&global_lock);
     mtimer_arm_rel(&rs->timer, rtsp_session_timer_cb, rs, sec2mono(RTSP_TIMEOUT));
     pthread_mutex_unlock(&global_lock);