Revert some more changes in rpc_manager
This commit is contained in:
parent
a0d774fdc4
commit
d526dfb171
@ -20,7 +20,6 @@ class RPCManager:
|
|||||||
def __init__(self, freqtrade) -> None:
|
def __init__(self, freqtrade) -> None:
|
||||||
""" Initializes all enabled rpc modules """
|
""" Initializes all enabled rpc modules """
|
||||||
self.registered_modules: List[RPCHandler] = []
|
self.registered_modules: List[RPCHandler] = []
|
||||||
self._freqtrade = freqtrade
|
|
||||||
self._rpc = RPC(freqtrade)
|
self._rpc = RPC(freqtrade)
|
||||||
config = freqtrade.config
|
config = freqtrade.config
|
||||||
# Enable telegram
|
# Enable telegram
|
||||||
@ -53,7 +52,7 @@ class RPCManager:
|
|||||||
""" Stops all enabled rpc modules """
|
""" Stops all enabled rpc modules """
|
||||||
logger.info('Cleaning up rpc modules ...')
|
logger.info('Cleaning up rpc modules ...')
|
||||||
while self.registered_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)
|
logger.info('Cleaning up rpc.%s ...', mod.name)
|
||||||
mod.cleanup()
|
mod.cleanup()
|
||||||
del mod
|
del mod
|
||||||
|
Loading…
Reference in New Issue
Block a user