mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:57:44 +00:00
LibCore: Make NetworkJob::start()
take a Stream::BufferedSocketBase&
It used to take a plain `Socket` and cast it to a `BufferedSocketBase`, which can lead to unpleasant result when used with a non-buffered `Socket`.
This commit is contained in:
parent
5fc873f53b
commit
ff47223301
6 changed files with 8 additions and 8 deletions
|
@ -20,10 +20,10 @@ Job::Job(GeminiRequest const& request, Stream& output_stream)
|
|||
{
|
||||
}
|
||||
|
||||
void Job::start(Core::Socket& socket)
|
||||
void Job::start(Core::BufferedSocketBase& socket)
|
||||
{
|
||||
VERIFY(!m_socket);
|
||||
m_socket = verify_cast<Core::BufferedSocketBase>(&socket);
|
||||
m_socket = &socket;
|
||||
on_socket_connected();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue