Skip to content

Commit

Permalink
[single] Enable setting timeout to 0
Browse files Browse the repository at this point in the history
Enable setting timeout to 0
timeout 0 now has significance and re-setting timeout to 0 should be allowed

Related issue: nnstreamer#2568

Signed-off-by: Parichay Kapoor <[email protected]>
  • Loading branch information
kparichay authored and myungjoo committed Jul 24, 2020
1 parent 8057350 commit 5cccd8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/capi/src/nnstreamer-capi-single.c
Original file line number Diff line number Diff line change
Expand Up @@ -943,7 +943,7 @@ ml_single_set_timeout (ml_single_h single, unsigned int timeout)

check_feature_state ();

if (!single || timeout == 0)
if (!single)
return ML_ERROR_INVALID_PARAMETER;

ML_SINGLE_GET_VALID_HANDLE_LOCKED (single_h, single, 0);
Expand Down

0 comments on commit 5cccd8e

Please sign in to comment.