move MANAGER_IS_RELOADING() check into manager_recheck_{dbus|journal}() (#8510)
authorLennart Poettering <lennart@poettering.net>
Wed, 21 Mar 2018 11:03:45 +0000 (12:03 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 21 Mar 2018 11:03:45 +0000 (12:03 +0100)
commit31dc1ca3bf9fbb0baf308d213e58ea389cceff4e
treec28b7d2293c22e0757329e12d81fea5360bf413b
parentd56fced9e0b7490000ed0fea6022fab1eade17c6
move MANAGER_IS_RELOADING() check into manager_recheck_{dbus|journal}() (#8510)

Let's better check this inside of the call than before it, so that we
never issue this while reloading, even should these calls be called due
to other reasons than just the unit notify.

This makes sure the reload state is unset a bit earlier in
manager_reload() so that we can safely call this function from there and
they do the right thing.

Follow-up for e63ebf71edd7947f29389c72e851d8df5c7bedda.
src/core/manager.c
src/core/unit.c