From 3b96b6e15a2b478bacdbe5635909514f488e1e9e Mon Sep 17 00:00:00 2001 From: Kim Gustyr Date: Tue, 27 Aug 2024 22:24:46 +0100 Subject: [PATCH] fix: `EnvironmentDataPollingManager` tests fail in some environments --- lib/flagsmith/sdk/intervals.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/flagsmith/sdk/intervals.rb b/lib/flagsmith/sdk/intervals.rb index 321cd76..b832f79 100644 --- a/lib/flagsmith/sdk/intervals.rb +++ b/lib/flagsmith/sdk/intervals.rb @@ -9,8 +9,8 @@ module Intervals def set_interval(delay) Thread.new do loop do - sleep delay yield if block_given? + sleep delay end end end