Hadith 2049 Sunan Abu Dawood
It means if he did not want to divorce her, then keep her as his wife. If he did not care about her being immoral, what else can be said to him? A woman does not become haram to a man for her immoral acts. Man has to divorce her to end his marriage with her.