|
|
@ -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) { |
|
|
|