0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-02 18:18:56 +02:00

ircd::client: Check socket fini condition before entering async/wait mode.

This commit is contained in:
Jason Volk 2020-01-24 14:04:21 -08:00
parent 55e9bc87e1
commit 3f2876303a

View file

@ -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