mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
RequestServer: Actually hold on to the preload job until it's done
This was some nonsense code left in by mistake, ref commit:
4211639e45
Fixes #904.
This commit is contained in:
committed by
Tim Flynn
parent
b445b907a1
commit
93216a875e
@@ -100,8 +100,7 @@ struct JobData {
|
||||
}
|
||||
#endif
|
||||
|
||||
template<typename T>
|
||||
static JobData create(WeakPtr<T> job, [[maybe_unused]] URL::URL url)
|
||||
static JobData create(auto job, [[maybe_unused]] URL::URL url)
|
||||
{
|
||||
return JobData {
|
||||
[job](auto& socket) { job->start(socket); },
|
||||
|
||||
@@ -162,7 +162,7 @@ void ConnectionFromClient::worker_do_work(Work work)
|
||||
|
||||
dbgln("EnsureConnection: Pre-connect to {}", url);
|
||||
auto do_preconnect = [=, job = Job::ensure(url)](auto& cache) {
|
||||
ConnectionCache::ensure_connection(cache, url, job->make_weak_ptr<Job>());
|
||||
ConnectionCache::ensure_connection(cache, url, move(job));
|
||||
};
|
||||
|
||||
if (url.scheme() == "http"sv)
|
||||
|
||||
Reference in New Issue
Block a user