Decrease sleep time in heartbeat function
Reduce sleep duration in heartbeat check from 5 seconds to 0.5 seconds.
This commit is contained in:
@@ -165,7 +165,7 @@ local function heartbeat_f()
|
|||||||
heartbeat = false
|
heartbeat = false
|
||||||
interactions.send({protocol="heartbeat"}, v.sender)
|
interactions.send({protocol="heartbeat"}, v.sender)
|
||||||
parallel.waitForAny(function()
|
parallel.waitForAny(function()
|
||||||
sleep(5)
|
sleep(0.5)
|
||||||
end, function()
|
end, function()
|
||||||
while not heartbeat do
|
while not heartbeat do
|
||||||
sleep()
|
sleep()
|
||||||
|
|||||||
Reference in New Issue
Block a user