summaryrefslogtreecommitdiff
path: root/src/c/urweb.c
diff options
context:
space:
mode:
authorGravatar Sergey Mironov <grrwlf@gmail.com>2014-06-15 21:13:12 +0000
committerGravatar Sergey Mironov <grrwlf@gmail.com>2014-06-15 21:13:12 +0000
commit0a45f32c63f2d9a3df8c8ea15ea67b8e8c0fef5a (patch)
treec736f5fa666d6e638ea84d897e4c7e742e3603c9 /src/c/urweb.c
parent9bfceb750b35c2f20d924987807702da42d12709 (diff)
Call try_rollback before resetting the context
This will allow FFI cleanup handlers to complete.
Diffstat (limited to 'src/c/urweb.c')
-rw-r--r--src/c/urweb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/c/urweb.c b/src/c/urweb.c
index 020e69d4..7b95d6a9 100644
--- a/src/c/urweb.c
+++ b/src/c/urweb.c
@@ -3343,7 +3343,7 @@ int uw_commit(uw_context ctx) {
if (ctx->transactionals[i].free)
ctx->transactionals[i].free(ctx->transactionals[i].data, 1);
- return 1;
+ return 1;
}
for (i = ctx->used_transactionals-1; i >= 0; --i)