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
The text was updated successfully, but these errors were encountered:
class
HTTP
in AcceptSDK does not deallocate aftergetTokenWithRequest
completedSteps 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 referenceSolution
After
task
has finished, making URLSession invalidate will remove the reference toHTTP
.session.finishTasksAndInvalidate()
Add the above code after semaphore.wait
The text was updated successfully, but these errors were encountered: