mirror of
https://github.com/pinnacle-comp/pinnacle.git
synced 2025-01-18 22:26:12 +01:00
Return from ping loop if it's the only coroutine
FIXME: this is a bandaid fix to get tests working again. Most tests will have to wait through one ping loop before exiting, causing tests to take like 10 minutes.
This commit is contained in:
parent
5da0f84350
commit
535b441887
1 changed files with 4 additions and 0 deletions
|
@ -57,6 +57,10 @@ local client = {
|
|||
|
||||
client.loop:wrap(function()
|
||||
while true do
|
||||
-- If the only managed coroutine is this ping loop, return to allow the config to exit
|
||||
if client.loop:count() == 1 then
|
||||
return
|
||||
end
|
||||
require("cqueues").sleep(60)
|
||||
local success, err, errno = client.conn:ping(10)
|
||||
if not success then
|
||||
|
|
Loading…
Reference in a new issue