mirror of
https://github.com/matrix-construct/construct
synced 2024-06-08 21:18:57 +02:00
ircd:Ⓜ️:fetch: Further hoist throw fetch termination; fix error message. (934d76e81d
)
This commit is contained in:
parent
11f878209f
commit
cc3999486e
|
@ -412,6 +412,12 @@ try
|
|||
|
||||
while(request.origin)
|
||||
{
|
||||
if(unlikely(!request.promise))
|
||||
throw ctx::broken_promise
|
||||
{
|
||||
"Fetch interrupted."
|
||||
};
|
||||
|
||||
if(start(request, request.origin))
|
||||
return true;
|
||||
|
||||
|
@ -449,12 +455,6 @@ try
|
|||
"Cannot start fetch requests in runlevel."
|
||||
};
|
||||
|
||||
if(unlikely(!request.promise))
|
||||
throw ctx::broken_promise
|
||||
{
|
||||
"Fetch response check interrupted."
|
||||
};
|
||||
|
||||
assert(request.promise);
|
||||
assert(!request.finished);
|
||||
request.last = ircd::now<system_point>();
|
||||
|
|
Loading…
Reference in a new issue