explicitly call cleanup when cleaning backtest

This commit is contained in:
Matthias 2022-05-08 08:11:39 +02:00
parent c9498d0117
commit 45b328af2e

View File

@ -172,6 +172,7 @@ def api_delete_backtest(ws_mode=Depends(is_webserver_mode)):
"status_msg": "Backtest running", "status_msg": "Backtest running",
} }
if ApiServer._bt: if ApiServer._bt:
ApiServer._bt.cleanup()
del ApiServer._bt del ApiServer._bt
ApiServer._bt = None ApiServer._bt = None
del ApiServer._bt_data del ApiServer._bt_data