Add a docstring to 'setup' and 'teardown'
Inform that 'setup' and 'teardown' are for internally use only.
This commit is contained in:
parent
2401229871
commit
2b3b2e5808
@ -141,6 +141,7 @@ class Core(
|
||||
CoreListener.send('stream_title_changed', title=title)
|
||||
|
||||
def setup(self):
|
||||
""" Do not call this function. It is for internal use at startup."""
|
||||
try:
|
||||
coverage = []
|
||||
if self._config and 'restore_state' in self._config['core']:
|
||||
@ -152,6 +153,7 @@ class Core(
|
||||
logger.warn('Restore state: Unexpected error: %s', str(e))
|
||||
|
||||
def teardown(self):
|
||||
""" Do not call this function. It is for internal use at shutdown."""
|
||||
try:
|
||||
if self._config and 'restore_state' in self._config['core']:
|
||||
amount = self._config['core']['restore_state']
|
||||
|
||||
Loading…
Reference in New Issue
Block a user