summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-08-09 22:44:52 +0200
committerLennart Poettering <lennart@poettering.net>2010-08-09 22:44:52 +0200
commit76143638fdabee59dcd5db81fe46c900299da425 (patch)
treec50f2b70ecc0a1f7f48f52494daf29b9e2fc8ff8 /src
parent69dd2852bb2c433b517d89792adb4461a4178aa1 (diff)
swap: properly enter maintenance mode on failure
Diffstat (limited to 'src')
-rw-r--r--src/swap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/swap.c b/src/swap.c
index 6765a4ae30..29006712b5 100644
--- a/src/swap.c
+++ b/src/swap.c
@@ -400,7 +400,7 @@ static void swap_dump(Unit *u, FILE *f, const char *prefix) {
static void swap_enter_dead(Swap *s, bool success) {
assert(s);
- swap_set_state(s, success ? SWAP_MAINTENANCE : SWAP_DEAD);
+ swap_set_state(s, success ? SWAP_DEAD : SWAP_MAINTENANCE);
}
static int swap_start(Unit *u) {