Problem with HttpClient::destroyInstance

Problem with HttpClient::destroyInstance


I am creating an instance of HttpClient to call API , before getting response if we replace the scene app crashes. (Since scene doesn’t exists)

So we are manually destroying HttpClient using HttpClient::destroyInstance() on click on back button , so the
response is not getting called. (which prevents the crash)

But the problem is if we call another api soon after replacing the scene,it creates an instance of httpClient But here sometimes we are not getting any response . (due to previous scene HttpClient::destroyInstance )

Is there any solution to avoid this.



If any one has solution let me know.


Any update on this issue?