We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 58512ba commit 4c9e171Copy full SHA for 4c9e171
1 file changed
lib/splitclient-rb/clients/split_client.rb
@@ -103,12 +103,12 @@ def destroy
103
sleep(0.1)
104
if !@config.threads.key?(:impressions_sender) || !@config.threads.key?(:events_sender)
105
@config.logger.debug("Periodic data recording thread has not started yet, waiting for service startup.")
106
- @config.threads[:start_sdk].join if @config.threads.key?(:start_sdk)
+ @config.threads[:start_sdk].join(5) if @config.threads.key?(:start_sdk)
107
end
108
109
@config.threads.select { |name, thread| name.to_s.end_with? 'sender' }.values.each do |thread|
110
thread.raise(SplitIoClient::SDKShutdownException)
111
- thread.join(5)
+ thread.join
112
113
114
@config.threads.values.each { |thread| Thread.kill(thread) }
0 commit comments