Undo debug stuff

This commit is contained in:
simon987 2020-03-05 18:42:51 -05:00
parent 04dbfb23ab
commit 513a21cca2
2 changed files with 2 additions and 5 deletions

View File

@ -41,9 +41,6 @@ void store_destroy(store_t *store) {
void store_write(store_t *store, char *key, size_t key_len, char *buf, size_t buf_len) {
// TODO: DEBUG
return;
if (LogCtx.very_verbose) {
char uuid_str[UUID_STR_LEN];
uuid_unparse((unsigned char *) key, uuid_str);

View File

@ -46,14 +46,14 @@ int render_cover(fz_context *ctx, document_t *doc, fz_document *fzdoc) {
fz_var(err);
fz_try(ctx)
{
// pthread_mutex_lock(&ScanCtx.mupdf_mu);
pthread_mutex_lock(&ScanCtx.mupdf_mu);
fz_run_page(ctx, cover, dev, fz_identity, NULL);
}
fz_always(ctx)
{
fz_close_device(ctx, dev);
fz_drop_device(ctx, dev);
// pthread_mutex_unlock(&ScanCtx.mupdf_mu);
pthread_mutex_unlock(&ScanCtx.mupdf_mu);
}
fz_catch(ctx)
err = ctx->error.errcode;