1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-23 17:02:25 +03:00

Update src/webrtc/callEventHandler.ts

Co-authored-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
Dariusz Niemczyk
2021-08-11 14:38:20 +02:00
committed by GitHub
parent 3e94db1837
commit d7dbaeba46

View File

@@ -261,7 +261,7 @@ export class CallEventHandler {
}
// The following events need a call and a peer connection
if (!call && !call.hasPeerConnection) {
if (!call || !call.hasPeerConnection) {
logger.warn('Discarding an event, we don't have a call/peerConn', type);
return;
}