Skip to content

Commit

Permalink
Pass timeout as kwargs in wait for state
Browse files Browse the repository at this point in the history
  • Loading branch information
the-spectator authored and ColinDKelley committed Jan 14, 2021
1 parent b5cee77 commit 92793ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/listen/event/loop.rb
Expand Up @@ -52,7 +52,7 @@ def start

Listen.logger.debug("Waiting for processing to start...")

wait_for_state(:started, MAX_STARTUP_SECONDS) or
wait_for_state(:started, timeout: MAX_STARTUP_SECONDS) or
raise Error::NotStarted, "thread didn't start in #{MAX_STARTUP_SECONDS} seconds (in state: #{state.inspect})"

Listen.logger.debug('Processing started.')
Expand Down

0 comments on commit 92793ff

Please sign in to comment.