     
     func requestDidFinish(with error: Error?)
     {
-        UIApplication.shared.endBackgroundTask(self.backgroundTaskID!)
-        
         DispatchQueue.main.async { [weak self] in
             self?.completion?(error)
         }

import Foundation
import StoreKit

fileprivate var refreshSession: RefreshSession?

public extension InAppReceipt

    *  Refresh local in-app receipt
    *  - Parameter completion: handler for result
    */
    @available(watchOSApplicationExtension 6.2, *)
    static func refresh(completion: @escaping IAPRefreshRequestResult)
    {
        if refreshSession != nil { return }
