We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b2cfbcd commit 4406ef7Copy full SHA for 4406ef7
1 file changed
lib/splitclient-rb/clients/split_client.rb
@@ -1,6 +1,3 @@
1
-require 'thread'
2
-require 'thwait'
3
-
4
module SplitIoClient
5
EVENTS_SIZE_THRESHOLD = 32768
6
EVENT_AVERAGE_SIZE = 1024
@@ -104,9 +101,7 @@ def destroy
104
101
@config.logger.debug("Impressions and/or Events cache is not empty")
105
102
if !@config.threads.key?(:impressions_sender) && !@config.threads.key?(:events_sender)
106
103
@config.logger.debug("Periodic data recording thread has not started yet, waiting for service startup.")
107
- threads = []
108
- threads << @config.threads[:start_sdk]
109
- ThreadsWait.all_waits(*threads)
+ @config.threads[:start_sdk].join
110
end
111
112
@config.threads.select { |name, thread| name.to_s.end_with? 'sender' }.values.each do |thread|
0 commit comments