summaryrefslogtreecommitdiff
path: root/target.c
diff options
context:
space:
mode:
Diffstat (limited to 'target.c')
-rw-r--r--target.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/target.c b/target.c
index b8a7442f1c..c80c09d546 100644
--- a/target.c
+++ b/target.c
@@ -52,6 +52,9 @@ static void target_set_state(Target *t, TargetState state) {
TargetState old_state;
assert(t);
+ if (state == t->state)
+ return;
+
old_state = t->state;
t->state = state;