summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/journals.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/journals.c b/src/journals.c
index f7fdc50..27b2756 100644
--- a/src/journals.c
+++ b/src/journals.c
@@ -123,9 +123,7 @@ int journal_read(iou_t *iou, journal_t *journal, uint64_t offset, uint64_t lengt
buf_used(journal, buf);
memcpy(dest, &buf->data[offset - buf->offset], length);
- thunk_dispatch(closure);
-
- return 0;
+ return thunk_end(thunk_dispatch(closure));
}
}
© All Rights Reserved