summaryrefslogtreecommitdiff
path: root/data.c
diff options
context:
space:
mode:
authorGravatar default2023-02-11 06:28:36 +0100
committerGravatar default2023-02-11 06:28:36 +0100
commit28d1da0a81f0d07d5960792eddce37b22dd43da7 (patch)
treed04461b1583863ff6c9fd84202dca50c70d1dc70 /data.c
parentImproved Delete button fix. (diff)
downloadsnac2-28d1da0a81f0d07d5960792eddce37b22dd43da7.tar.gz
snac2-28d1da0a81f0d07d5960792eddce37b22dd43da7.tar.xz
snac2-28d1da0a81f0d07d5960792eddce37b22dd43da7.zip
Don't fail silently if the job fifo is not ready.
Diffstat (limited to 'data.c')
-rw-r--r--data.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/data.c b/data.c
index a500b03..43fbeef 100644
--- a/data.c
+++ b/data.c
@@ -1407,7 +1407,7 @@ void enqueue_output_raw(const char *keyid, const char *seckey,
1407 qmsg = xs_dict_append(qmsg, "seckey", seckey); 1407 qmsg = xs_dict_append(qmsg, "seckey", seckey);
1408 1408
1409 /* if it's to be sent right now, bypass the disk queue and post the job */ 1409 /* if it's to be sent right now, bypass the disk queue and post the job */
1410 if (retries == 0) 1410 if (retries == 0 && job_fifo_ready())
1411 job_post(qmsg); 1411 job_post(qmsg);
1412 else { 1412 else {
1413 qmsg = _enqueue_put(fn, qmsg); 1413 qmsg = _enqueue_put(fn, qmsg);