Commit 3b9d1c0f authored by Stan Hu's avatar Stan Hu

Fix refresh to lazily load connection

parent b25ebfe6
......@@ -45,8 +45,7 @@ module Bitbucket
@expires_at = response.expires_at
@expires_in = response.expires_in
@refresh_token = response.refresh_token
@connection = OAuth2::AccessToken.new(@client, @token, refresh_token: @refresh_token, expires_at: @expires_at, expires_in: @expires_in)
@connection = nil
end
private
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment