'Stop any download states callback if present.'

def stop_download_states_callback(self):

    if self.is_pending_task_active('download_states_lc'):
        self.cancel_pending_task('download_states_lc')
