mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
nit: remove extra weak ptr lock
This commit is contained in:
parent
30c7618fe5
commit
fd2dd6c13f
|
@ -152,12 +152,11 @@ void HTTPRequest::execute(sol::this_state L)
|
|||
// this could happen if the plugin was deleted
|
||||
return;
|
||||
}
|
||||
auto strong = hack.lock();
|
||||
auto *pl = getApp()->getPlugins()->getPluginByStatePtr(L);
|
||||
for (auto it = pl->httpRequests.begin();
|
||||
it < pl->httpRequests.end(); it++)
|
||||
{
|
||||
if (*it == strong)
|
||||
if (*it == self)
|
||||
{
|
||||
pl->httpRequests.erase(it);
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue