0
0
Fork 0
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:
Jason Volk 2018-07-06 18:40:58 -07:00
parent dd037988f3
commit 1c6a4bc8d1

View file

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