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:
parent
673e6f3a32
commit
3bf828e0f9
Notes:
sideshowbarker
2024-07-18 03:20:18 +09:00
Author: https://github.com/alimpfard Commit: https://github.com/SerenityOS/serenity/commit/3bf828e0f97 Pull-request: https://github.com/SerenityOS/serenity/pull/12347
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue