Skip to content

Commit

Permalink
assert talker has been added to participant
Browse files Browse the repository at this point in the history
  • Loading branch information
lhoward committed Dec 19, 2024
1 parent 22a344a commit bff4a25
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Sources/MRP/Applications/MSRP/MSRPApplication.swift
Original file line number Diff line number Diff line change
Expand Up @@ -998,6 +998,9 @@ extension MSRPApplication {
matching: .matchAny
)

// assert that talker has already been added to participant
precondition(talkers.contains(where: { ($0.1 as! MSRPTalkerAdvertiseValue).streamID == talkerRegistration.streamID } ))

var streams = [SRclassID: [MSRPTSpec]]()

for talker in talkers.map({ $0.1 as! MSRPTalkerAdvertiseValue }) {
Expand Down

0 comments on commit bff4a25

Please sign in to comment.