mirror of
https://github.com/appy-one/acebase-server.git
synced 2026-05-25 14:12:16 -06:00
Handle transactions that timeout without starting
This commit is contained in:
parent
9a4befe652
commit
d8b422250c
1 changed files with 1 additions and 1 deletions
|
|
@ -265,7 +265,7 @@ export const addWebsocketServer = (env: RouteInitEnvironment) => {
|
|||
finish: undefined,
|
||||
timeout: setTimeout(() => {
|
||||
delete client.transactions[tx.id];
|
||||
tx.finish(); // Finish without value cancels the transaction
|
||||
tx.finish && tx.finish(); // Finish without value cancels the transaction
|
||||
env.log.error(LOG_ACTION, 'timeout', LOG_DETAILS);
|
||||
serverManager.send(event.socket, 'tx_error', { id: tx.id, reason: 'timeout' });
|
||||
}, TRANSACTION_TIMEOUT_MS),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue