What the judge did (which I agree was despicable) and what the DA did (which doesn't matter) has no bearing on whether or not there will be a re-trial in 4 months. Cosby will appeal if he's convicted so from that point of view you could skip the trial entirely, his best bet is that he may be found not guilty.