Skip to content

Commit

Permalink
fix(userspace): remove unread variable in restart_handler
Browse files Browse the repository at this point in the history
When hitting that part, the restart signal is triggered and the code
leaves the loop, hence setting should_restart as false makes no sense
in this context.

Signed-off-by: Samuel Gaist <[email protected]>
  • Loading branch information
sgaist authored and poiana committed Feb 19, 2024
1 parent ad585cd commit 05e7967
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion userspace/falco/app/restart_handler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,6 @@ void falco::app::restart_handler::watcher_loop() noexcept
// at least we don't make users wait for the timeout.
if (should_restart)
{
should_restart = false;
// todo(jasondellaluce): make this a callback too maybe?
g_restart_signal.trigger();
return;
Expand Down

0 comments on commit 05e7967

Please sign in to comment.