0
0
Fork 0
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:
Jason Volk 2018-04-13 16:05:43 -07:00
parent dd69acbad3
commit 7b22f65e86

View file

@ -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;
}