Second threshold condition in the case of Q switching by self-focusing