def __oneshot_resume(when):
 global __PAUSE_END
 if ((__PAUSE_END is not None) and (when > (__PAUSE_END - 5)) and (when < (__PAUSE_END + 55))):
  __PAUSE_END = None
  logging.debug('Resume after pause-interval')
  sabnzbd.unpause_all()
 else:
  logging.debug('Ignoring cancelled resume')

def __oneshot_resume ( when ) : global __PAUSE_END if ( ( __PAUSE_END is not None ) and ( when > ( __PAUSE_END - 5 ) ) and ( when < ( __PAUSE_END + 55 ) ) ) : __PAUSE_END = None logging . debug ( 'Resume after pause-interval' ) sabnzbd . unpause_all ( ) else : logging . debug ( 'Ignoring cancelled resume' )
called by delayed resume schedule only resumes if call comes at the planned time .