chiark / gitweb /
Report about syntax errors with metadata
[elogind.git] / src / login / logind-action.c
index a796ebe9eca24ab2842f4c564eebac8d0dffd517..4091e411b04cfae15faa5794f98cbb1e155be0cc 100644 (file)
@@ -21,6 +21,8 @@
 
 #include <unistd.h>
 
+#include <systemd/sd-messages.h>
+
 #include "conf-parser.h"
 #include "special.h"
 #include "dbus-common.h"
@@ -60,7 +62,7 @@ int manager_handle_action(
 
         assert(m);
 
-        if (m->action_job || m->delayed_unit) {
+        if (m->action_what) {
                 log_debug("Action already in progress, ignoring.");
                 return -EALREADY;
         }