Avoid timer period being set to 0 (#359)

This commit is contained in:
Shane Loretz 2018-12-18 11:39:22 -08:00 committed by GitHub
parent 657d9e84c7
commit 5162a99685
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -431,7 +431,7 @@ _recalculate_expire_timer(
rcl_clock_t * clock)
{
size_t num_inactive_goals = 0u;
int64_t minimum_period = 0;
int64_t minimum_period = timeout;
// Get current time (nanosec)
int64_t current_time;