In the following sentence:
I was waiting at the train station when the rain had stopped.
Is it correct to use the present continuous with the past perfect, or should I use the past simple?
I was waiting at the train station when the rain stopped.