Avoid race conditions
This commit is contained in:
@ -335,7 +335,7 @@ $(document).ready(function() {
|
||||
|
||||
socket.on('updateHistoryGraph', function(rawData) {
|
||||
// Prevent race conditions.
|
||||
if (!graphDuration) {
|
||||
if (!graphDuration || !displayedGraphData || !hiddenGraphData) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user