Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Forcing to stop refresh token thread #477

Merged
merged 1 commit into from
Jun 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lib/splitclient-rb/engine/push_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ def start_sse

def stop_sse
@sse_handler.stop
SplitIoClient::Helpers::ThreadHelper.stop(:schedule_next_token_refresh, @config)
rescue StandardError => e
@config.logger.error(e.inspect)
end
Expand Down
2 changes: 1 addition & 1 deletion lib/splitclient-rb/split_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ def init_impressions_mode(impressions_mode, adapter)
return :debug
else
default = adapter == :redis ? :debug : :optimized
@logger.error("You passed an invalid impressions_mode, impressions_mode should be one of the following values: :debug, :optimized or :none. Defaulting to #{default} mode")
@logger.error("You passed an invalid impressions_mode, impressions_mode should be one of the following values: :debug, :optimized or :none. Defaulting to #{default} mode") unless impressions_mode.nil?
return default
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/splitclient-rb/sse/event_source/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def connect_stream(latch)

raise 'eof exception' if partial_data == :eof
rescue Errno::EBADF, IOError => e
@config.logger.error(e.inspect)
@config.logger.error(e.inspect) if @config.debug_enabled
return nil
rescue StandardError => e
return nil if ENV['SPLITCLIENT_ENV'] == 'test'
Expand Down