fix wake = 0 and return

This commit is contained in:
clinton-hall 2013-04-15 16:19:40 +09:30
commit 0b4b1dd5cd

View file

@ -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)