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