summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorphintuka <phintuka>2012-03-17 20:06:29 +0000
committerphintuka <phintuka>2012-03-17 20:06:29 +0000
commitdab4c840bbc63168c3c6d47641aed3d7e6665847 (patch)
tree5c4333dd38d19a7eee6aeb2d514e838ed0b5de6b
parent8a8cc4d188e263f29678977b7cae78ed4ddb755b (diff)
downloadxineliboutput-dab4c840bbc63168c3c6d47641aed3d7e6665847.tar.gz
xineliboutput-dab4c840bbc63168c3c6d47641aed3d7e6665847.tar.bz2
Make sure master timing source is re-selected when client disconnects
-rw-r--r--frontend_svr.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/frontend_svr.c b/frontend_svr.c
index b78be949..01ab74de 100644
--- a/frontend_svr.c
+++ b/frontend_svr.c
@@ -4,7 +4,7 @@
* See the main source file 'xineliboutput.c' for copyright information and
* how to reach the author.
*
- * $Id: frontend_svr.c,v 1.104 2012-03-13 07:58:15 phintuka Exp $
+ * $Id: frontend_svr.c,v 1.105 2012-03-17 20:06:29 phintuka Exp $
*
*/
@@ -224,6 +224,9 @@ void cXinelibServer::CloseDataConnection(int cli)
if(!m_iMulticastMask && !xc.remote_rtp_always_on)
m_Scheduler->RemoveRtp();
+
+ if (cli == m_MasterCli)
+ m_MasterCli = -1;
}
void cXinelibServer::CloseConnection(int cli)