Skip to content
Snippets Groups Projects
Commit cbffb552 authored by Eric Vidal's avatar Eric Vidal :speech_balloon:
Browse files

command line take precedence

parent 4c6c7a80
No related branches found
No related tags found
No related merge requests found
......@@ -314,19 +314,21 @@ unsigned int compute_timeout(resolve_service_t *res, unsigned int what)
{
unsigned int timeout = 0 ;
if (!what) {
if (PINFO->opt_timeout) {
timeout = PINFO->timeout ;
} else if (!what) {
if (res->execute.timeout.start)
timeout = res->execute.timeout.start ;
} else {
if (res->execute.timeout.stop)
timeout = res->execute.timeout.stop ;
}
if (!timeout && PINFO->opt_timeout)
timeout = PINFO->timeout ;
return timeout ;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment