Revert some more changes in rpc_manager

This commit is contained in:
Matthias 2022-09-06 07:03:31 +02:00
parent a0d774fdc4
commit d526dfb171

View File

@ -20,7 +20,6 @@ class RPCManager:
def __init__(self, freqtrade) -> None:
""" Initializes all enabled rpc modules """
self.registered_modules: List[RPCHandler] = []
self._freqtrade = freqtrade
self._rpc = RPC(freqtrade)
config = freqtrade.config
# Enable telegram
@ -53,7 +52,7 @@ class RPCManager:
""" Stops all enabled rpc modules """
logger.info('Cleaning up rpc modules ...')
while self.registered_modules:
mod = self.registered_modules.pop() # popleft to cleanup API server last?
mod = self.registered_modules.pop()
logger.info('Cleaning up rpc.%s ...', mod.name)
mod.cleanup()
del mod