Skip to content

Commit 58512ba

Browse files
author
Bilal Al
committed
added limit for joining thread
1 parent bfaf1d2 commit 58512ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/splitclient-rb/clients/split_client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def destroy
108108
end
109109
@config.threads.select { |name, thread| name.to_s.end_with? 'sender' }.values.each do |thread|
110110
thread.raise(SplitIoClient::SDKShutdownException)
111-
thread.join
111+
thread.join(5)
112112
end
113113

114114
@config.threads.values.each { |thread| Thread.kill(thread) }

0 commit comments

Comments
 (0)