mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 02:48:38 -04:00
Handling when starting hotspot may keep WROLPi API from starting.
This commit is contained in:
parent
b7cf7ca27d
commit
8e3c92b589
1 changed files with 8 additions and 2 deletions
10
main.py
10
main.py
|
|
@ -135,9 +135,15 @@ def main():
|
|||
|
||||
# Hotspot/throttle are not supported in Docker containers.
|
||||
if not DOCKERIZED and config.hotspot_on_startup:
|
||||
admin.enable_hotspot()
|
||||
try:
|
||||
admin.enable_hotspot()
|
||||
except Exception as e:
|
||||
logger.error('Failed to enable hotspot', exc_info=e)
|
||||
if not DOCKERIZED and config.throttle_on_startup:
|
||||
admin.throttle_cpu_on()
|
||||
try:
|
||||
admin.throttle_cpu_on()
|
||||
except Exception as e:
|
||||
logger.error('Failed to throttle CPU', exc_info=e)
|
||||
|
||||
check_media_directory()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue