updated logic

This commit is contained in:
Kavinkumar 2022-02-28 16:07:39 +05:30 committed by GitHub
parent f168c68676
commit 80cad96927
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -86,7 +86,9 @@ class Worker:
# Log state transition
if state != old_state:
if State.RELOAD_CONFIG not in (state, old_state):
if state != State.RELOAD_CONFIG or (
old_state == State.RELOAD_CONFIG and
state != State.RUNNING):
self.freqtrade.notify_status(f'{state.name.lower()}')
logger.info(