That is good...sometimes hitting the camera on the heel of your hand will do the same thing. I hesitate to suggest people begin taking a camera apart. You know, sometimes this can be dangerous...peligroso, you know.
I am glad you made it work again. Sometimes this indicates another problem, however. If your camera does this again, you might want to look for somebody who could service it.