Fix restart --warn broadcasting shutdown message

This commit is contained in:
Ben Peddell 2016-05-30 02:38:19 +10:00
parent e2c3fa3c68
commit ca3ff1e5f6

View File

@ -834,7 +834,7 @@ doStop() {
done
if [[ -n "$dowarn" ]]; then
if ! doWarn "$1" "$warnreason"; then
if ! doWarn "$stopreason" "$warnreason"; then
return 1
fi
fi