mirror of
https://github.com/matrix-construct/construct
synced 2025-02-18 01:30:12 +01:00
modules/federation/federation: Block on destruction of incomplete request.
This commit is contained in:
parent
adfc4d0c70
commit
adc2d9d66f
1 changed files with 8 additions and 0 deletions
|
@ -43,6 +43,14 @@ struct ircd::m::feds::request
|
|||
|
||||
request(request &&) = delete;
|
||||
request(const request &) = delete;
|
||||
~request() noexcept
|
||||
{
|
||||
if(this->valid())
|
||||
{
|
||||
server::cancel(*this);
|
||||
this->wait();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Add table
Reference in a new issue