From 2e82e6784a1cb5b8ebee3bcca8ddbfcd7782a917 Mon Sep 17 00:00:00 2001 From: robcaulk Date: Thu, 24 Nov 2022 19:07:38 +0100 Subject: [PATCH] move data_provider cleanup to shutdown() --- freqtrade/freqai/freqai_interface.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freqtrade/freqai/freqai_interface.py b/freqtrade/freqai/freqai_interface.py index 19d6b4faa..806dbf6f7 100644 --- a/freqtrade/freqai/freqai_interface.py +++ b/freqtrade/freqai/freqai_interface.py @@ -168,7 +168,6 @@ class IFreqaiModel(ABC): """ self.model = None self.dk = None - self.data_provider = None def _on_stop(self): """ @@ -185,6 +184,7 @@ class IFreqaiModel(ABC): logger.info("Stopping FreqAI") self._stop_event.set() + self.data_provider = None self._on_stop() logger.info("Waiting on Training iteration")