MCPcopy Create free account
hub / github.com/axmolengine/axmol / destroyInstance

Method destroyInstance

core/network/HttpClient-wasm.cpp:82–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80 }
81
82 void HttpClient::destroyInstance()
83 {
84 if (nullptr == _httpClient)
85 {
86 AXLOGD("HttpClient singleton is nullptr");
87 }
88
89 auto thiz = _httpClient;
90 _httpClient = nullptr;
91
92 auto& requestQueue = thiz->_requestQueue;
93 for (auto it = requestQueue.begin(); it != requestQueue.end();)
94 it = requestQueue.erase(it);
95
96 thiz->decreaseThreadCountAndMayDeleteThis();
97 }
98
99 void HttpClient::enableCookies(const char *cookieFile)
100 {

Callers

nothing calls this directly

Calls 4

beginMethod · 0.45
endMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected