You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue Detail
class HTTP in AcceptSDK does not deallocate after getTokenWithRequest completed
Steps to Reproduce
call getTokenWithRequest
Reason
In this line, class HTTP has been set as URLSession's delegate, and URLSessionDelegate is a strong reference property, not weak reference
Solution
After task has finished, making URLSession invalidate will remove the reference to HTTP. session.finishTasksAndInvalidate()
Add the above code after semaphore.wait
class
HTTPin AcceptSDK does not deallocate aftergetTokenWithRequestcompletedSteps to Reproduce
call
getTokenWithRequestReason
In this line, class
HTTPhas been set as URLSession's delegate, and URLSessionDelegate is a strong reference property, not weak referenceSolution
After
taskhas finished, making URLSession invalidate will remove the reference toHTTP.session.finishTasksAndInvalidate()Add the above code after semaphore.wait