Drying up Breastmilk suring Mastitis?

Lovely

Is it possible to dry up breastmilk while having mastitis? what are the risks or dangers?