Spotting??

How can you stop spotting ?? Does it go away itself? My period is done but I’m spotting because I have frequent yeast infections but when is this shit gonna go away :/ I treated the infection