-
Committer:
Alex Kavanagh
-
Date:
2016-06-15 11:28:15 UTC
-
Revision ID:
alex@ajkavanagh.co.uk-20160615112815-y7g0kbrjv54f6evc
Fix for multiple status-set - related to bug 1588462
This change fixes the obvious race for a status_set() between
check_optional_interfaces() and assess_status() as the later calls the former
which calls status_set(), returns the status, which is then potentially set
again by the assess_status() function. This cleans up the code so that only a
single status_set() is performed when calling assess_status().
Change-Id: Idb11019cec20061622b5f36911e49adfb9bac14e
Related-Bug:#1588462