events-backend: fix blocking request being ended too early
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
@@ -241,9 +241,7 @@ export async function createEventBusRouter(options: {
|
||||
{ subject: credentials.principal.subject },
|
||||
);
|
||||
} catch (error) {
|
||||
if (error === controller.signal.reason) {
|
||||
res.end();
|
||||
} else {
|
||||
if (error !== controller.signal.reason) {
|
||||
throw error;
|
||||
}
|
||||
} finally {
|
||||
|
||||
Reference in New Issue
Block a user