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:
|
except Exception:
|
||||||
logger.exception("Api server failed to start, exception message is:")
|
logger.exception("Api server failed to start, exception message is:")
|
||||||
|
|
||||||
|
def cleanup(self) -> None:
|
||||||
|
pass
|
||||||
|
|
||||||
def send_msg(self, msg: str) -> None:
|
def send_msg(self, msg: str) -> None:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
@ -97,17 +100,6 @@ class ApiServer(RPC):
|
|||||||
func()
|
func()
|
||||||
return
|
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
|
Define the application methods here, called by app.add_url_rule
|
||||||
each Telegram command should have a like local substitute
|
each Telegram command should have a like local substitute
|
||||||
|
Loading…
Reference in New Issue
Block a user