Skip to content

Commit

Permalink
disabling watchdog temporarily
Browse files Browse the repository at this point in the history
  • Loading branch information
emiltin committed Dec 13, 2023
1 parent c94c39c commit b9aca76
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions lib/rsmp/proxy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,20 @@ def start_watchdog
@watchdog_started = true
end

def stop_watchdog
log "Stopping watchdog", level: :debug
@watchdog_started = false
end

def with_watchdog_disabled
was = @watchdog_started
stop_watchdog if was
yield
ensure
start_watchdog if was
end


def start_timer
return if @timer
name = "timer"
Expand Down

0 comments on commit b9aca76

Please sign in to comment.