RequestServer: Reenable socket notifications unconditionally

There's a possible window where the notifications are disabled, and any
request coming at that time will never get any data if it relies on
socket notifications.
This commit is contained in:
Ali Mohammad Pur 2022-02-07 23:43:39 +03:30 committed by Andreas Kling
parent 673e6f3a32
commit 3bf828e0f9
Notes: sideshowbarker 2024-07-18 03:20:18 +09:00

View file

@ -64,6 +64,7 @@ void request_did_finish(URL const& url, Core::Stream::Socket const* socket)
connection->timer.start();
connection->current_url = url;
connection->job_data = connection->request_queue.take_first();
connection->socket->set_notifications_enabled(true);
connection->job_data.start(*connection->socket);
});
}