main: don't touch freqbot state in cleanup()
cleanup() should be only called after the main loop has been exited. At that point the state shouldn't be modified.
This commit is contained in:
@@ -55,7 +55,8 @@ def main(sysargv: List[str]) -> None:
|
||||
logger.exception('Fatal exception!')
|
||||
finally:
|
||||
if freqtrade:
|
||||
freqtrade.clean()
|
||||
freqtrade.rpc.send_msg('*Status:* `Stopping trader...`')
|
||||
freqtrade.cleanup()
|
||||
sys.exit(return_code)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user