]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core-varlink: merge two FLAGS_SET() where appropriate
authorMike Yuan <me@yhndnzj.com>
Wed, 24 Jul 2024 20:08:15 +0000 (22:08 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 14 Aug 2024 12:19:47 +0000 (14:19 +0200)
src/core/core-varlink.c

index ba6d50b504b8115dbabee7f3b5721b8bf7f23b09..ac20296b858617890b2cb68ef63b228e2aa74380 100644 (file)
@@ -596,7 +596,7 @@ static int vl_reply(sd_varlink *link, sd_json_variant *parameters, const char *e
         if (error_id)
                 log_debug("varlink systemd-oomd client error: %s", error_id);
 
-        if (FLAGS_SET(flags, SD_VARLINK_REPLY_ERROR) && FLAGS_SET(flags, SD_VARLINK_REPLY_LOCAL)) {
+        if (FLAGS_SET(flags, SD_VARLINK_REPLY_ERROR|SD_VARLINK_REPLY_LOCAL)) {
                 /* sd_varlink connection was closed, likely because of systemd-oomd restart. Let's try to
                  * reconnect and send the initial ManagedOOM update again. */