From 2b4fa6b758cfd8794541f607cd94b3aa64b37d18 Mon Sep 17 00:00:00 2001 From: Laurent Eschenauer Date: Fri, 10 Jan 2014 09:29:05 +0100 Subject: [PATCH] Closes issue #3. --- lib/Controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Controller.js b/lib/Controller.js index 387413f..02f0dda 100644 --- a/lib/Controller.js +++ b/lib/Controller.js @@ -55,7 +55,7 @@ function Controller(client, options) { // Register the listener on navdata for our control loop var self = this; client.on('navdata', function(d) { - if (!this._busy) { + if (!this._busy && d.demo) { this._busy = true; self._processNavdata(d); self._control(d);