What stops mass extinctions? Lessons from amphibian die-off in Panama

What slows or stops a disease epidemic if the pathogen is still present? It appears that wild frogs are becoming increasingly resistant to the chytrid fungal disease that has decimated amphibian populations around the world.