Fix a bug preventing reconnection in drive

This commit is contained in:
yflory committed 2017-02-01 17:21:54 +01:00
1 parent 89da142204
commit 65054119cf
4 files changed
+30 -15

No files matched your search

+2 -2
View File
@@ -270,11 +270,11 @@ define([
'class': 'lag'
});
var title;
if (typeof lag !== "undefined") {
if (lag) {
lagErrors = 0;
firstConnection = false;
title = Messages.lag + ' : ' + lag + ' ms\n';
if (lag.waiting || lag > 1000) {
if (lag && lag.waiting || lag > 1000) {
lagLight.addClass('lag-orange');
title += Messages.orangeLight;
} else {