Avoid race conditions

This commit is contained in:
Cryptkeeper 2016-02-01 05:32:00 -06:00
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;
}