Remove unneeded condition

The publisher peer connection when the HPB is used is a sender only
connection, so it never adds or removes a remote stream.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
This commit is contained in:
Daniel Calviño Sánchez 2022-11-22 01:28:01 +01:00
parent 30aafed0e8
commit 64c4f8c7ee

View File

@ -477,9 +477,7 @@ public class PeerConnectionWrapper {
@Override
public void onRemoveStream(MediaStream mediaStream) {
if (!isMCUPublisher) {
EventBus.getDefault().post(new MediaStreamEvent(null, sessionId, videoStreamType));
}
EventBus.getDefault().post(new MediaStreamEvent(null, sessionId, videoStreamType));
}
@Override