as soon as sheIn the construction стоило ей + infinitive, как ..., it means “as soon as she ...”; the construction often suggests that the second event happened immediately afterward.
RU: Стоило ей открыть дверь, как зазвонил телефон.
EN: As soon as she opened the door, the phone rang.