I was wondering what the difference in meaning is between the two following sentences (if there is any).
It had been raining when I left the house.
It had rained when I left the house.
I'm pretty sure that the first sentence means it has just stopped raining when I leave the house. Does the second sentence with the past perfect mean the same thing? Or is there a difference in meaning?