don't attempt to update graphs if we're not connected

v1.18.x
psychobunny 10 years ago
parent 6a6f0a3b78
commit 806b115782

@ -17,7 +17,7 @@ define('forum/admin/general/dashboard', ['semver'], function(semver) {
clearInterval(updateIntervalId);
}
updateIntervalId = setInterval(function() {
if (app.isFocused) {
if (app.isFocused && app.isConnected) {
socket.emit('meta.rooms.getAll', Admin.updateRoomUsage);
}
}, 5000);
@ -305,7 +305,7 @@ define('forum/admin/general/dashboard', ['semver'], function(semver) {
}
function updateTrafficGraph() {
if (!app.isFocused) {
if (!app.isFocused || !app.isConnected) {
return;
}

Loading…
Cancel
Save