Skip to content

Commit 97df2cd

Browse files
authored
Merge pull request #78 from AirHelp/fix-typo
BINGO fix typo in instance var during shut down
2 parents ba4040d + 57c1e33 commit 97df2cd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/eventboss/launcher.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def stop
4141
end
4242

4343
def hard_shutdown
44-
if @poolers.empty? && @workers.empty?
44+
if @pollers.empty? && @workers.empty?
4545
logger.info('launcher') { 'Gracefully shutdown' }
4646
return
4747
end
@@ -85,6 +85,7 @@ def wait_for_shutdown
8585
attempts = 0
8686
while @pollers.any? || @workers.any?
8787
break if (attempts += 1) > shutdown_attempts
88+
8889
sleep shutdown_delay
8990
logger.info('launcher') { "Waiting for #{@pollers.size} pollers, #{@workers.size} workers" }
9091
end

0 commit comments

Comments
 (0)