Merge pull request #2267 from tomislav/sabnzbd-suite-removedebug

SABnzbd-Suite: remove debugging code
This commit is contained in:
Stefan Saraev 2013-05-06 12:16:47 -07:00
commit dc0d62de0c

View File

@ -69,7 +69,7 @@ if sabNzbdLaunch:
# start checking SABnzbd for activity and prevent sleeping if necessary # start checking SABnzbd for activity and prevent sleeping if necessary
socket.setdefaulttimeout(timeout) socket.setdefaulttimeout(timeout)
# perform some initial checks and log essential settings # perform some initial checks and log essential settings
shouldKeepAwake = (__settings__.getSetting('SABNZBD_KEEP_AWAKE').lower() == 'true') shouldKeepAwake = (__settings__.getSetting('SABNZBD_KEEP_AWAKE').lower() == 'true')
wakePeriodically = (__settings__.getSetting('SABNZBD_PERIODIC_WAKE').lower() == 'true') wakePeriodically = (__settings__.getSetting('SABNZBD_PERIODIC_WAKE').lower() == 'true')
@ -118,10 +118,8 @@ while (not xbmc.abortRequested):
# reset idle timer if queue is downloading/reparing/verifying/extracting # reset idle timer if queue is downloading/reparing/verifying/extracting
if sabIsActive: if sabIsActive:
xbmc.executebuiltin('InhibitIdleShutdown(true)') xbmc.executebuiltin('InhibitIdleShutdown(true)')
xbmc.log('preventing sleep')
else: else:
xbmc.executebuiltin('InhibitIdleShutdown(false)') xbmc.executebuiltin('InhibitIdleShutdown(false)')
xbmc.log('not preventing sleep')
# calculate and set the time to wake up at (if any) # calculate and set the time to wake up at (if any)
if wakePeriodically: if wakePeriodically: