Pregnant and still breastfeeding

Hi guys I found out i am pregnant 2 days ago but i have not been able to wean my three year old. She wants it just when she is about to sleep. That would be at night and midday for her nap. And sometimes at night if she has to. Do u think it is no ideal or if any one in the same boat or have any ideas plz suggest.