From 92793ff98f8604679cc8a0bcd4ff2187f7e560a6 Mon Sep 17 00:00:00 2001 From: Akshay Birajdar Date: Wed, 13 Jan 2021 16:47:32 +0530 Subject: [PATCH] Pass timeout as kwargs in wait for state --- lib/listen/event/loop.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/listen/event/loop.rb b/lib/listen/event/loop.rb index 6b36627a..9b6e2ebf 100644 --- a/lib/listen/event/loop.rb +++ b/lib/listen/event/loop.rb @@ -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.')