From f57fa533efff1401552f3e8cf229d70243be8b91 Mon Sep 17 00:00:00 2001 From: John Kodumal Date: Fri, 25 Mar 2016 11:48:16 -0700 Subject: [PATCH] Attempt to fix potential race condition with em-http-request --- lib/ldclient-rb/stream.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ldclient-rb/stream.rb b/lib/ldclient-rb/stream.rb index 4e508990..69f6c1d6 100644 --- a/lib/ldclient-rb/stream.rb +++ b/lib/ldclient-rb/stream.rb @@ -136,7 +136,7 @@ def boot_event_manager set_disconnected end source.inactivity_timeout = 0 - source.start + EM.schedule{ source.start } source end