mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-07-16 02:02:53 -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):
|
||||
Logger.error("You need an autoProcessMedia.cfg file - did you rename and edit the .sample?")
|
||||
return 1 # failure
|
||||
return
|
||||
|
||||
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.
|
||||
return
|
||||
Logger.info("Loading WakeOnLan config from %s", configFilename)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue