tikhop / TPInAppReceipt

Reading and Validating In App Purchase Receipt Locally.
MIT License
631 stars 93 forks source link

Refresh completion handler is not called if refreshSession is exist #93

Closed Keane81 closed 2 years ago

Keane81 commented 2 years ago

There is the method:

static func refresh(completion: @escaping IAPRefreshRequestResult)
    {
        if refreshSession != nil { return }

        refreshSession = RefreshSession()
        refreshSession!.refresh { (error) in
            completion(error)
            InAppReceipt.destroyRefreshSession()
        }
    }

It will just silently return if refreshSession is already exists without completion handler calling. Can you please check it?

tikhop commented 2 years ago

Hi @Keane81 thanks for reporting this. I'll fix it this week.

tikhop commented 2 years ago

Hi @Keane81, just released a fix.

Keane81 commented 2 years ago

thank you, I'll update )