]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-master: minor refactor of stats_client_send_event()
authorJosef 'Jeff' Sipek <jeff.sipek@open-xchange.com>
Fri, 15 Mar 2019 01:19:59 +0000 (21:19 -0400)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Mon, 20 May 2019 06:46:32 +0000 (06:46 +0000)
This makes later event exporting commits cleaner.

src/lib-master/stats-client.c

index 5acf197f6b633503dda0e809150f1cb338ce5074..60f930c48978ad474d56eaf95e308d4fd0e349c0 100644 (file)
@@ -237,7 +237,10 @@ static void
 stats_client_send_event(struct stats_client *client, struct event *event,
                        const struct failure_context *ctx)
 {
-       if (!client->handshaked || client->filter == NULL ||
+       if (!client->handshaked)
+               return;
+
+       if (client->filter == NULL ||
            !event_filter_match(client->filter, event, ctx))
                return;