diff options
author | Stéphane Lepin <stephane.lepin@gmail.com> | 2017-10-21 22:41:28 +0200 |
---|---|---|
committer | Stéphane Lepin <stephane.lepin@gmail.com> | 2017-10-21 22:41:28 +0200 |
commit | 6fdde515d1dd8830cb8d1d4239b475afc811571c (patch) | |
tree | 72a7a4d3f53a22c06cefd3513c3fc3e4ef19bb18 /src/broadcast | |
parent | cfa5940981490b91a8039b345cdcc9074ca75ad7 (diff) |
LB status handling : turn off if all connections are manually disconnected
Diffstat (limited to 'src/broadcast')
-rw-r--r-- | src/broadcast/broadcastmanager.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/broadcast/broadcastmanager.cpp b/src/broadcast/broadcastmanager.cpp index 70df8e7b8f..2a377538a0 100644 --- a/src/broadcast/broadcastmanager.cpp +++ b/src/broadcast/broadcastmanager.cpp @@ -225,7 +225,12 @@ void BroadcastManager::slotConnectionStatusChanged(int newState) { } // Changed global status indicator depending on global connections status - if (failedCount >= enabledCount || enabledCount < 1) { + if (enabledCount < 1) { + // Disable Live Broadcasting if all connections are disabled manually. + // Calling setEnabled will also update the status CO to UNCONNECTED + setEnabled(false); + } + else if (failedCount >= enabledCount) { m_pStatusCO->forceSet(STATUSCO_FAILURE); } else if (failedCount > 0 && failedCount < enabledCount) { |