Skip to content

Commit

Permalink
feat: change timeout in approval handler
Browse files Browse the repository at this point in the history
Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>
  • Loading branch information
tkimura4 committed Apr 26, 2022
1 parent 700a826 commit bffa1cf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class ApprovalHandler
bool isApproved() const
{
const auto now = clock_.now();
const auto thresh_sec = 0.5;
const auto thresh_sec = 5.0;
if (approval_.data && (now - approval_.stamp).seconds() < thresh_sec) {
if ((now - last_clear_time_).seconds() > thresh_sec) {
return true;
Expand Down

0 comments on commit bffa1cf

Please sign in to comment.