mirror of
https://github.com/matrix-construct/construct
synced 2024-11-25 16:22:35 +01:00
ircd::server: Add throwing socket check before read.
This commit is contained in:
parent
7a6c872870
commit
568acd46c4
1 changed files with 3 additions and 0 deletions
|
@ -2242,6 +2242,9 @@ ircd::server::link::process_read_next(const const_buffer &underrun,
|
|||
bool &done)
|
||||
try
|
||||
{
|
||||
assert(socket);
|
||||
net::check(*socket, net::ready::ERROR); // throws
|
||||
|
||||
const mutable_buffer buffer
|
||||
{
|
||||
tag.make_read_buffer()
|
||||
|
|
Loading…
Reference in a new issue