mirror of
https://github.com/matrix-construct/construct
synced 2025-02-17 01:00:10 +01:00
modules/client/initialsync: Terminate client on initialsync exception.
This commit is contained in:
parent
dd69acbad3
commit
7b22f65e86
1 changed files with 4 additions and 0 deletions
|
@ -146,6 +146,10 @@ catch(const std::exception &e)
|
|||
e.what()
|
||||
};
|
||||
|
||||
// Terminate client on exception here because the response will be
|
||||
// incomplete if it's our fault; or they will probably already be
|
||||
// dc'ed if its their fault.
|
||||
client.close(net::dc::RST, net::close_ignore);
|
||||
throw;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue