summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasem Mutlaq <mutlaqja@ikarustech.com>2016-10-21 20:53:43 (GMT)
committerJasem Mutlaq <mutlaqja@ikarustech.com>2016-10-21 20:53:43 (GMT)
commitf1e5848f26d46ec16872d579bafa95bf71776d23 (patch)
tree650b291bcc44e2b695693ed37a708fb4dfbab4be
parent0a4bb6bea350f7a4d0f2cbd8f3c50176f0df0df6 (diff)
Immediately send heart beat upon connection, do not rely on timeout
-rw-r--r--kstars/indi/indistd.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/kstars/indi/indistd.cpp b/kstars/indi/indistd.cpp
index 5e5bf3d..7438e74 100644
--- a/kstars/indi/indistd.cpp
+++ b/kstars/indi/indistd.cpp
@@ -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);
}
}
}