mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-13 18:16:52 -07:00
fix wake = 0 and return
This commit is contained in:
parent
049fa2312c
commit
0b4b1dd5cd
1 changed files with 2 additions and 2 deletions
|
@ -253,10 +253,10 @@ def WakeUp():
|
||||||
|
|
||||||
if not os.path.isfile(configFilename):
|
if not os.path.isfile(configFilename):
|
||||||
Logger.error("You need an autoProcessMedia.cfg file - did you rename and edit the .sample?")
|
Logger.error("You need an autoProcessMedia.cfg file - did you rename and edit the .sample?")
|
||||||
return 1 # failure
|
return
|
||||||
|
|
||||||
config.read(configFilename)
|
config.read(configFilename)
|
||||||
wake = config.get("WakeOnLan", "wake")
|
wake = int(config.get("WakeOnLan", "wake"))
|
||||||
if wake == 0: # just return if we don't need to wake anything.
|
if wake == 0: # just return if we don't need to wake anything.
|
||||||
return
|
return
|
||||||
Logger.info("Loading WakeOnLan config from %s", configFilename)
|
Logger.info("Loading WakeOnLan config from %s", configFilename)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue