File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -354,11 +354,14 @@ RemoteParticipant CreateRemoteParticipantWithTracks(ConnectCallback.Types.Partic
354
354
var publications = item . Publications ;
355
355
var newParticipant = new RemoteParticipant ( participant , this ) ;
356
356
_participants . Add ( participant . Info . Sid , newParticipant ) ;
357
- foreach ( var pub in publications )
357
+ if ( publications != null )
358
358
{
359
- var publication = new RemoteTrackPublication ( pub . Info ) ;
360
- newParticipant . _tracks . Add ( publication . Sid , publication ) ;
361
- newParticipant . OnTrackPublished ( publication ) ;
359
+ foreach ( var pub in publications )
360
+ {
361
+ var publication = new RemoteTrackPublication ( pub . Info ) ;
362
+ newParticipant . _tracks . Add ( publication . Sid , publication ) ;
363
+ newParticipant . OnTrackPublished ( publication ) ;
364
+ }
362
365
}
363
366
return newParticipant ;
364
367
}
You can’t perform that action at this time.
0 commit comments