mirror of
https://github.com/matrix-construct/construct
synced 2024-11-26 08:42:34 +01:00
modules/client/profile: Throw out here instead.
This commit is contained in:
parent
cc6cd58755
commit
b90d3a9447
1 changed files with 2 additions and 5 deletions
|
@ -168,13 +168,10 @@ get__profile_remote(client &client,
|
|||
|
||||
//TODO: conf
|
||||
if(federation_request.wait(seconds(8)) == ctx::future_status::timeout)
|
||||
throw http::error
|
||||
{
|
||||
cancel(federation_request);
|
||||
return resource::response
|
||||
{
|
||||
client, http::REQUEST_TIMEOUT
|
||||
http::REQUEST_TIMEOUT
|
||||
};
|
||||
}
|
||||
|
||||
const http::code &code
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue