mirror of https://github.com/nymea/nymea.git
Merge PR #544: Adjust timeout duration for actions, thing discovery and JSON-RPC replies
commit
9697c6bbab
|
|
@ -302,7 +302,7 @@ ThingDiscoveryInfo* ThingManagerImplementation::discoverThings(const ThingClassI
|
|||
}
|
||||
ParamList effectiveParams = buildParams(thingClass.discoveryParamTypes(), params);
|
||||
|
||||
ThingDiscoveryInfo *discoveryInfo = new ThingDiscoveryInfo(thingClassId, effectiveParams, this, 30000);
|
||||
ThingDiscoveryInfo *discoveryInfo = new ThingDiscoveryInfo(thingClassId, effectiveParams, this, 40000);
|
||||
connect(discoveryInfo, &ThingDiscoveryInfo::finished, this, [this, discoveryInfo](){
|
||||
if (discoveryInfo->status() != Thing::ThingErrorNoError) {
|
||||
qCWarning(dcThingManager()) << "Discovery failed:" << discoveryInfo->status() << discoveryInfo->displayMessage();
|
||||
|
|
@ -1341,7 +1341,7 @@ ThingActionInfo *ThingManagerImplementation::executeAction(const Action &action)
|
|||
ParamList finalParams = buildParams(actionType.paramTypes(), action.params());
|
||||
finalAction.setParams(finalParams);
|
||||
|
||||
ThingActionInfo *info = new ThingActionInfo(thing, finalAction, this, 30000);
|
||||
ThingActionInfo *info = new ThingActionInfo(thing, finalAction, this, 15000);
|
||||
|
||||
IntegrationPlugin *plugin = m_integrationPlugins.value(thing->pluginId());
|
||||
if (!plugin) {
|
||||
|
|
|
|||
|
|
@ -134,10 +134,10 @@ void JsonReply::setCommandId(int commandId)
|
|||
m_commandId = commandId;
|
||||
}
|
||||
|
||||
/*! Start the timeout timer for this \l{JsonReply}. The default timeout is 15 seconds. */
|
||||
/*! Start the timeout timer for this \l{JsonReply}. The default timeout is 45 seconds. */
|
||||
void JsonReply::startWait()
|
||||
{
|
||||
m_timeout.start(30000);
|
||||
m_timeout.start(45000);
|
||||
}
|
||||
|
||||
void JsonReply::timeout()
|
||||
|
|
|
|||
Loading…
Reference in New Issue