|
@@ -82,6 +82,10 @@ Peer.prototype._retrieveId = function(cb) {
|
|
|
http.open('get', url, true);
|
|
|
http.onreadystatechange = function() {
|
|
|
if (http.readyState === 4) {
|
|
|
+ if (http.status !== 200) {
|
|
|
+ throw 'Retrieve id response not 200';
|
|
|
+ return;
|
|
|
+ }
|
|
|
self.id = http.responseText;
|
|
|
self._init();
|
|
|
}
|