It would be unlikely to stop having periods due to the type of infection you are describing. Although it is unclear exactly what the cause was, it seems to be gone now. In general, it is a good idea to discuss abnormal smelling discharge with your doctor so he/she can do a culture to see if any bacteria grow that should not be there, and also look at any vaginal discharge under a microscope. There might also be other things that could cause a smell that could be seen at the time of an exam. It is unlikely anything you did or did not do made your periods stop when they did.
Machelle M. Seibel, MD