From 4af3d8a85f17e36a9e97525a25b0aee24c9346db Mon Sep 17 00:00:00 2001 From: Cryptkeeper Date: Mon, 1 Feb 2016 05:32:00 -0600 Subject: [PATCH] Avoid race conditions --- assets/js/site.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/site.js b/assets/js/site.js index fe9b9a8..0175218 100644 --- a/assets/js/site.js +++ b/assets/js/site.js @@ -335,7 +335,7 @@ $(document).ready(function() { socket.on('updateHistoryGraph', function(rawData) { // Prevent race conditions. - if (!graphDuration) { + if (!graphDuration || !displayedGraphData || !hiddenGraphData) { return; }