mirror of
https://github.com/matrix-construct/construct
synced 2024-11-16 15:00:51 +01:00
ircd::net: Ensure flag happens before cancel.
This commit is contained in:
parent
dd037988f3
commit
1c6a4bc8d1
1 changed files with 1 additions and 1 deletions
|
@ -1034,8 +1034,8 @@ bool
|
||||||
ircd::net::listener::acceptor::interrupt()
|
ircd::net::listener::acceptor::interrupt()
|
||||||
noexcept try
|
noexcept try
|
||||||
{
|
{
|
||||||
a.cancel();
|
|
||||||
interrupting = true;
|
interrupting = true;
|
||||||
|
a.cancel();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
catch(const boost::system::system_error &e)
|
catch(const boost::system::system_error &e)
|
||||||
|
|
Loading…
Reference in a new issue