chiark / gitweb /
nspawn: make nspawn robust to container failure
[elogind.git] / src / libsystemd / sd-event / sd-event.c
index 06af962dfb8f4a945c8b49bb6f3cd9b5d0161296..c48fa37e89cd341b5e74a5027c1d52d93791f90b 100644 (file)
@@ -718,9 +718,9 @@ static sd_event_source *source_new(sd_event *e, bool floating, EventSourceType t
 
         s->n_ref = 1;
         s->event = e;
+        s->floating = floating;
         s->type = type;
         s->pending_index = s->prepare_index = PRIOQ_IDX_NULL;
-        s->floating = floating;
 
         if (!floating)
                 sd_event_ref(e);