Merge remote-tracking branch 'origin/feature/ecs-407' into feature/cisco-spark-2

This commit is contained in:
Neil Dorin
2017-09-22 15:44:00 -06:00
16 changed files with 427 additions and 73 deletions

View File

@@ -91,8 +91,9 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec
public override void EndAllCalls()
{
Debug.Console(1, this, "EndAllCalls");
foreach (var call in ActiveCalls)
for(int i = ActiveCalls.Count - 1; i >= 0; i--)
{
var call = ActiveCalls[i];
ActiveCalls.Remove(call);
SetNewCallStatusAndFireCallStatusChange(eCodecCallStatus.Disconnected, call);
}