From db732e6001859d6f3900ecf1d921513bc24a5c23 Mon Sep 17 00:00:00 2001 From: jordan lavatai Date: Tue, 4 Jul 2017 16:38:20 -0700 Subject: [PATCH] more minor fixes --- client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.js b/client.js index 8a4fe43..cb3872f 100644 --- a/client.js +++ b/client.js @@ -85,7 +85,7 @@ function pollServerForAnswer(url, data, resolve, reject) { /* Poll server for ice candidates until ice is complete */ function pollServerForICECandidate(cpc) { window.setInterval(() => { - if (cpc.iceGatheringState !== 'complete') { + if (cpc.iceGatheringState.localeCompare('complete') === 0) { return new Promise((resolve, reject) => { console.log('Client: Requesting ICE Candidates from server') const request = new XMLHttpRequest() -- 2.18.0