Judge Philip Crayton said Connell had spent "much of the last few months in custody".
He sentenced Connell to 80 hours of community work.
"All I can say is: if you come back before this court for similar behaviour, then it's likely that the court's tolerance and patience will be well and truly worn out . . . the response will be that which you have become accustomed to, which is prison."