removed change to cleanup() in api_server.py
This commit is contained in:
parent
eedcb64962
commit
3fb680b3b4
@ -79,6 +79,9 @@ class ApiServer(RPC):
|
||||
except Exception:
|
||||
logger.exception("Api server failed to start, exception message is:")
|
||||
|
||||
def cleanup(self) -> None:
|
||||
pass
|
||||
|
||||
def send_msg(self, msg: str) -> None:
|
||||
pass
|
||||
|
||||
@ -97,17 +100,6 @@ class ApiServer(RPC):
|
||||
func()
|
||||
return
|
||||
|
||||
def cleanup(self) -> None:
|
||||
"""
|
||||
Stops the running application server
|
||||
|
||||
Does not stop the thread,this may not be the desired outcome of cleanup. TBC
|
||||
:return:
|
||||
"""
|
||||
self.shutdown_api_server()
|
||||
# def cleanup(self) -> None:
|
||||
# pass
|
||||
|
||||
"""
|
||||
Define the application methods here, called by app.add_url_rule
|
||||
each Telegram command should have a like local substitute
|
||||
|
Loading…
Reference in New Issue
Block a user