Commit f1e5848f authored by Jasem Mutlaq's avatar Jasem Mutlaq
Browse files

Immediately send heart beat upon connection, do not rely on timeout

parent 0a4bb6be
......@@ -136,7 +136,8 @@ void GenericDevice::registerProperty(INDI::Property *prop)
if (connected && nvp->np[0].value > 0)
{
// Send immediately a heart beat
watchDogTimer->start(0);
clientManager->sendNewNumber(nvp);
//watchDogTimer->start(0);
}
}
}
......@@ -168,7 +169,8 @@ void GenericDevice::processSwitch(ISwitchVectorProperty * svp)
if (nvp && nvp->np[0].value > 0)
{
// Send immediately
watchDogTimer->start(0);
clientManager->sendNewNumber(nvp);
//watchDogTimer->start(0);
}
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment