Browse files

Remove memoization of Net::HTTP (not threadsafe)

FYI it didn't previously reuse the http connection, this just saved a tiny bit of cpu time which is probably irrelevant
  • Loading branch information...
1 parent d2dbfd2 commit 49fafbd3ddb1af9ebdf098974e39d7c472e0bdf9 @mloughran mloughran committed Dec 21, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/pusher/client.rb
@@ -225,7 +225,7 @@ def trigger_async(channels, event_name, data, params = {})
# @private Construct a net/http http client
def net_http_client
- @_http_sync ||= begin
+ begin
if encrypted?
require 'net/https' unless defined?(Net::HTTPS)

0 comments on commit 49fafbd

Please sign in to comment.