rtc

minimal webrtc client
git clone git://ce9e.org/rtc

commit
1edbb7409fb6ccf10966a6eb68b4e6c1ea61881c
parent
96ae6600205d103c788dde204cd7827b5a1f1dbb
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2020-05-05 19:10
avoid crash on addIceCandidate()

Diffstat

M static/rtc.js 2 +-

1 files changed, 1 insertions, 1 deletions


diff --git a/static/rtc.js b/static/rtc.js

@@ -101,7 +101,7 @@ var handleAnswer = function(sender, answer) {
  101   101 };
  102   102 
  103   103 var handleCandidate = function(sender, candidate) {
  104    -1 	if (sender in cons) {
   -1   104 	if (sender in cons && candidate && candidate.candidate) {
  105   105 		var con = cons[sender].con;
  106   106 		con.addIceCandidate(candidate);
  107   107 	}