Skip to content

Commit

Permalink
Rename @stop_requested to @stopped
Browse files Browse the repository at this point in the history
  • Loading branch information
ivoanjo committed Mar 13, 2024
1 parent 760e084 commit 22f3330
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/datadog/core/remote/worker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def initialize(interval:, &block)

@starting = false
@started = false
@stop_requested = false
@stopped = false

@interval = interval
raise ArgumentError, 'can not initialize a worker without a block' unless block
Expand All @@ -24,7 +24,7 @@ def start

acquire_lock

if @stop_requested
if @stopped
Datadog.logger.debug('remote worker: refusing to restart after previous stop')
return
end
Expand Down Expand Up @@ -60,7 +60,7 @@ def stop

@started = false
@thr = nil
@stop_requested = true
@stopped = true

Datadog.logger.debug { 'remote worker stopped' }
ensure
Expand Down

0 comments on commit 22f3330

Please sign in to comment.