Synchronise heartbeat
This commit is contained in:
parent
fdf78de626
commit
68516ef824
|
@ -313,9 +313,18 @@ class ApiClient
|
|||
|
||||
private void heartbeatLoop()
|
||||
{
|
||||
while(_busy)
|
||||
{
|
||||
sleep(10.msecs);
|
||||
}
|
||||
|
||||
_busy = true;
|
||||
|
||||
auto technicalRequest = new TechnicalRequest("heartbeat");
|
||||
sendRequest("sequential", technicalRequest);
|
||||
|
||||
_busy = false;
|
||||
|
||||
sleep(10000.msecs);
|
||||
|
||||
//TODO: Add a random action to prevent timeout
|
||||
|
|
Loading…
Reference in New Issue