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:
parent
a8c491bf2b
commit
195f581da7
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user