Skip to content

Commit 4406ef7

Browse files
author
Bilal Al
committed
removed thwait lib
1 parent b2cfbcd commit 4406ef7

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

lib/splitclient-rb/clients/split_client.rb

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
require 'thread'
2-
require 'thwait'
3-
41
module SplitIoClient
52
EVENTS_SIZE_THRESHOLD = 32768
63
EVENT_AVERAGE_SIZE = 1024
@@ -104,9 +101,7 @@ def destroy
104101
@config.logger.debug("Impressions and/or Events cache is not empty")
105102
if !@config.threads.key?(:impressions_sender) && !@config.threads.key?(:events_sender)
106103
@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)
104+
@config.threads[:start_sdk].join
110105
end
111106
end
112107
@config.threads.select { |name, thread| name.to_s.end_with? 'sender' }.values.each do |thread|

0 commit comments

Comments
 (0)