cdba: -t should always disable inactivity timeout

Specifying -t means that inactivity timeout should be disabled,
regardless of the value. Specifying either -t 0 or -T 0 will set timeout
to 0, which means no timeout, regardless of timeout_on_inactivity.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
This commit is contained in:
Bjorn Andersson
2019-08-01 11:19:27 -07:00
parent 75cf87d509
commit ab93bc2255

3
cdba.c
View File

@@ -500,8 +500,7 @@ int main(int argc, char **argv)
break;
case 't':
timeout = atoi(optarg);
if (timeout == 0)
timeout_on_inactivity = false;
timeout_on_inactivity = false;
break;
case 'T':
timeout = atoi(optarg);