From 501082ed50ff7967a976fa3eea6de8187ef480c4 Mon Sep 17 00:00:00 2001 From: "Roger A. Light" Date: Wed, 1 Mar 2023 11:41:21 +0000 Subject: [PATCH] Remove duplicate subscribe event call --- src/handle_subscribe.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/handle_subscribe.c b/src/handle_subscribe.c index f2dd5399..34c5c275 100644 --- a/src/handle_subscribe.c +++ b/src/handle_subscribe.c @@ -227,11 +227,6 @@ int handle__subscribe(struct mosquitto *context) } log__printf(NULL, MOSQ_LOG_SUBSCRIBE, "%s %d %s", context->id, qos, sub.topic_filter); - rc = plugin__handle_subscribe(context, &sub); - if(rc){ - mosquitto__FREE(sub.topic_filter); - return rc; - } plugin_persist__handle_subscription_add(context, &sub); } mosquitto__FREE(sub.topic_filter);