summaryrefslogtreecommitdiff
path: root/src/snapshot.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-07-13 19:01:20 +0200
committerLennart Poettering <lennart@poettering.net>2010-07-13 19:01:20 +0200
commit9f611ad82e1eb1a9885f07ac95c244b25a7fbac7 (patch)
treee0826c50fcb39a85fecb575d13bc5f64a9f6caf8 /src/snapshot.c
parent4c633005eacdf964d22107f453ba804868f33a25 (diff)
unit: disable retroactive starting/stopping of units when deserializing
Diffstat (limited to 'src/snapshot.c')
-rw-r--r--src/snapshot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/snapshot.c b/src/snapshot.c
index 11e7c3e28d..e1583384cd 100644
--- a/src/snapshot.c
+++ b/src/snapshot.c
@@ -56,7 +56,7 @@ static int snapshot_load(Unit *u) {
/* Make sure that only snapshots created via snapshot_create()
* can be loaded */
- if (!s->by_snapshot_create && !s->meta.manager->deserializing)
+ if (!s->by_snapshot_create && s->meta.manager->n_deserializing <= 0)
return -ENOENT;
u->meta.load_state = UNIT_LOADED;