Browse Source

Make sure to clean up userid and suserid when connection is lost.

pull/79/head
Simon Eisenmann 11 years ago
parent
commit
6b09c54c59
  1. 2
      static/js/controllers/mediastreamcontroller.js

2
static/js/controllers/mediastreamcontroller.js

@ -549,6 +549,7 @@ define(['underscore', 'bigscreen', 'moment', 'sjcl', 'modernizr', 'webrtc.adapte
var t = event.type; var t = event.type;
var opts = $.extend({}, options); var opts = $.extend({}, options);
$timeout.cancel(ttlTimeout); $timeout.cancel(ttlTimeout);
$scope.userid = $scope.suserid = null;
switch (t) { switch (t) {
case "open": case "open":
t = "waiting"; t = "waiting";
@ -559,7 +560,6 @@ define(['underscore', 'bigscreen', 'moment', 'sjcl', 'modernizr', 'webrtc.adapte
if (opts.soft) { if (opts.soft) {
return; return;
} }
$scope.userid = $scope.suserid = null;
break; break;
case "error": case "error":
if (reconnecting || connected) { if (reconnecting || connected) {

Loading…
Cancel
Save