mirror of
https://github.com/matrix-construct/construct
synced 2025-01-13 08:23:56 +01:00
ircd::client: Check socket fini condition before entering async/wait mode.
This commit is contained in:
parent
55e9bc87e1
commit
3f2876303a
1 changed files with 3 additions and 0 deletions
|
@ -354,6 +354,9 @@ ircd::client::async()
|
|||
assert(bool(this->sock));
|
||||
assert(bool(this->conf));
|
||||
auto &sock(*this->sock);
|
||||
if(unlikely(sock.fini))
|
||||
return false;
|
||||
|
||||
const auto &timeout
|
||||
{
|
||||
conf->async_timeout
|
||||
|
|
Loading…
Reference in a new issue