From b8f54f324faf980b2418320f816f4911e537d674 Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Sat, 14 Jan 2023 19:49:43 +0000 Subject: [PATCH] Avoid sending a superfluous response, I think? git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4123 ed5197a5-7fde-0310-b194-c3ffbd925b24 --- src/ssb.rpc.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ssb.rpc.c b/src/ssb.rpc.c index 97398e42..d59d980f 100644 --- a/src/ssb.rpc.c +++ b/src/ssb.rpc.c @@ -37,6 +37,11 @@ static void _tf_ssb_rpc_gossip_ping(tf_ssb_connection_t* connection, uint8_t fla static void _tf_ssb_rpc_blobs_get(tf_ssb_connection_t* connection, uint8_t flags, int32_t request_number, JSValue args, const uint8_t* message, size_t size, void* user_data) { + if (flags & k_ssb_rpc_flag_end_error) + { + return; + } + tf_ssb_t* ssb = tf_ssb_connection_get_ssb(connection); JSContext* context = tf_ssb_connection_get_context(connection); JSValue ids = JS_GetPropertyStr(context, args, "args");