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

ircd: Allow exceptions to propagate from various interruptors.

This commit is contained in:
Jason Volk 2018-12-22 16:21:27 -08:00
parent 365cf865d0
commit c2b344b74e
3 changed files with 7 additions and 7 deletions

View file

@ -134,7 +134,7 @@ try
};
const auto interruption{[this]
(ctx::ctx *const &) noexcept
(ctx::ctx *const &)
{
this->cancel();
}};
@ -169,7 +169,7 @@ ircd::net::socket::read_few(iov&& bufs)
try
{
const auto interruption{[this]
(ctx::ctx *const &) noexcept
(ctx::ctx *const &)
{
this->cancel();
}};
@ -256,7 +256,7 @@ try
};
const auto interruption{[this]
(ctx::ctx *const &) noexcept
(ctx::ctx *const &)
{
this->cancel();
}};
@ -285,7 +285,7 @@ ircd::net::socket::write_few(iov&& bufs)
try
{
const auto interruption{[this]
(ctx::ctx *const &) noexcept
(ctx::ctx *const &)
{
this->cancel();
}};

View file

@ -409,7 +409,7 @@ try
};
const auto interruption{[&fd]
(ctx::ctx *const &interruptor) noexcept
(ctx::ctx *const &interruptor)
{
fd.cancel();
}};

View file

@ -1742,7 +1742,7 @@ ircd::net::listener_udp::acceptor::operator()(datagram &datagram)
};
const auto interruption{[this]
(ctx::ctx *const &) noexcept
(ctx::ctx *const &)
{
this->interrupt();
}};
@ -2131,7 +2131,7 @@ ircd::net::socket::wait(const wait_opts &opts)
try
{
const auto interruption{[this]
(ctx::ctx *const &) noexcept
(ctx::ctx *const &)
{
this->cancel();
}};