1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Remove redundant assignment.

The publish immediately overwrites this time so there isn't much
point setting it.
This commit is contained in:
Mark Hindess 2014-07-30 13:58:40 +01:00
parent a8c491bf2b
commit 195f581da7

View File

@ -77,7 +77,6 @@ function start() {
heartbeatTimer = setInterval(function() { heartbeatTimer = setInterval(function() {
var now = Date.now(); var now = Date.now();
if (now-lastSentTime > webSocketKeepAliveTime) { if (now-lastSentTime > webSocketKeepAliveTime) {
lastSentTime = now;
publish("hb",lastSentTime); publish("hb",lastSentTime);
} }
}, webSocketKeepAliveTime); }, webSocketKeepAliveTime);