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
|
||||
interactions.send({protocol="heartbeat"}, v.sender)
|
||||
parallel.waitForAny(function()
|
||||
sleep(5)
|
||||
sleep(0.5)
|
||||
end, function()
|
||||
while not heartbeat do
|
||||
sleep()
|
||||
|
||||
Reference in New Issue
Block a user