Two men with long criminal records who raided a computer shop have been told by a judge the public needs protecting from them.
Five laptops were among the haul taken after a brick was thrown through a window at the business in Church Street, Blackpool.
Peter Fowler and Henry McDonagh were each given 12-month prison terms in a hearing before Preston Crown Court.
Fowler and McDonagh, both 44, of High Street, Blackpool, had both admitted the burglary.
Equipment worth around £650 was taken in the raid.
Harry Pepper, prosecuting, said a neighbour living in the same building was disturbed by noises after midnight.
The resident heard banging noises, went down and saw one man outside saying “hurry up”.
The police were called. Officers were already in the vicinity investigating another burglary when they were called to the shop.
The pair were stopped and caught red handed. The stolen equipment was recovered.
Both men had dozens of previous offences to their names. Julie Taylor, for Fowler, said the burglary had occured on the spur-of-the-moment.
Waheed Omran-Baber, for McDonagh, said: “His life has been ravaged by drug use.”
Judge Michael Byrne said: “The court takes the view the public need to be protected from you both”.