mirror of
https://github.com/matrix-construct/construct
synced 2024-12-27 07:54:05 +01:00
modules/m_fetch: Explicitly cancel request after assignment failure.
This commit is contained in:
parent
f33f65040d
commit
2489ae02ff
1 changed files with 11 additions and 4 deletions
|
@ -948,11 +948,18 @@ try
|
|||
if(!request.started)
|
||||
request.started = ircd::time();
|
||||
|
||||
request.last = ircd::time();
|
||||
*static_cast<m::v1::event *>(&request) =
|
||||
request.last = ircd::time(); try
|
||||
{
|
||||
request.event_id, request.buf, std::move(opts)
|
||||
};
|
||||
*static_cast<m::v1::event *>(&request) =
|
||||
{
|
||||
request.event_id, request.buf, std::move(opts)
|
||||
};
|
||||
}
|
||||
catch(...)
|
||||
{
|
||||
cancel(request);
|
||||
throw;
|
||||
}
|
||||
|
||||
log::debug
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue