state: backend_storage: Set needs_refresh back to 0 after refreshing
Set needs_refresh back to 0 after refreshing so that we do not refresh
it again without need. This would only happen when we read the state
from the storage multiple times, which normally is not the case.
However, it's more consistent like this.

Reported-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent af18710 commit 275f35461a454be350ca18a25042be8800ac5008
@Sascha Hauer Sascha Hauer authored on 19 Apr 2017
Showing 1 changed file
View
common/state/backend_storage.c