From 195f581da7d6f326e6c0966b14d3fc0cecc07f8f Mon Sep 17 00:00:00 2001 From: Mark Hindess Date: Wed, 30 Jul 2014 13:58:40 +0100 Subject: [PATCH] Remove redundant assignment. The publish immediately overwrites this time so there isn't much point setting it. --- red/comms.js | 1 - 1 file changed, 1 deletion(-) diff --git a/red/comms.js b/red/comms.js index 3664f55cc..06b21ce37 100644 --- a/red/comms.js +++ b/red/comms.js @@ -77,7 +77,6 @@ function start() { heartbeatTimer = setInterval(function() { var now = Date.now(); if (now-lastSentTime > webSocketKeepAliveTime) { - lastSentTime = now; publish("hb",lastSentTime); } }, webSocketKeepAliveTime);