From 187600a9e768cea530147d4e16a62c6665502070 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Fri, 2 Jun 2023 15:26:27 +0200 Subject: ASAP::O: Make output stream write conditional --- src/im-asapo.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/im-asapo.c b/src/im-asapo.c index 6bc43b11..e0a23546 100644 --- a/src/im-asapo.c +++ b/src/im-asapo.c @@ -339,6 +339,7 @@ static void send_placeholder(struct im_asapo *a, struct image *image) * send a placeholder */ void im_asapo_send(struct im_asapo *a, struct image *image, int hit) { + if ( a->producer == NULL ) return; profile_start("asapo-send"); if ( hit ) { send_real(a, image); -- cgit v1.2.3