summaryrefslogtreecommitdiff
path: root/pm/pm-functions.in
diff options
context:
space:
mode:
authorVictor Lowther <victor.lowther@gmail.com>2008-06-20 20:50:18 -0500
committerVictor Lowther <victor.lowther@gmail.com>2008-06-20 20:50:18 -0500
commit965ff9c155d0151921514551881db4e6d499c214 (patch)
tree6ff47491049422b3a8d0f0ce66aa86fa37e8d5b7 /pm/pm-functions.in
parent153cc173c901761bc87b44759f6ce9a46de04da7 (diff)
If suspend has already been inhibited, don't run more hooks.
Diffstat (limited to 'pm/pm-functions.in')
-rw-r--r--pm/pm-functions.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/pm/pm-functions.in b/pm/pm-functions.in
index ad4676d..9c1c297 100644
--- a/pm/pm-functions.in
+++ b/pm/pm-functions.in
@@ -174,7 +174,7 @@ run_hooks() {
[ "$base" \> "$LAST_HOOK" ] && continue
# if we have already inhibited suspend/resume,
# don't run any more hooks.
- [ ! "$3" ] && inhibited && continue
+ [ ! "$3" ] && inhibited && break
update_parameters
if [ -f "$syshooks/$base" ]; then
hook="$syshooks/$base"