Browse Source

Merge pull request #95 from fancycode/screensharing_extension_timeout

Fixed extension timeout triggering unconditionally.
pull/97/head
Simon Eisenmann 12 years ago
parent
commit
a56f6b8c9f
  1. 10
      static/js/services/screensharing.js

10
static/js/services/screensharing.js

@ -162,10 +162,12 @@ define(['underscore', 'webrtc.adapter'], function(_) { @@ -162,10 +162,12 @@ define(['underscore', 'webrtc.adapter'], function(_) {
});
}
}, 100);
// Add a timeout of 30 seconds.
// The installation has been installed, but initialization might not work
$timeout(function() {
waiting = false;
d.reject("Timeout while waiting for extension getting installed");
if (waiting) {
waiting = false;
d.reject("Timeout while waiting for extension to become available");
}
}, 30000);
}, function(err) {
console.log("Auto install of extension failed.", err);
@ -220,4 +222,4 @@ define(['underscore', 'webrtc.adapter'], function(_) { @@ -220,4 +222,4 @@ define(['underscore', 'webrtc.adapter'], function(_) {
}];
});
});

Loading…
Cancel
Save