A riot involving up to 2,000 workers led consumer electronics maker Foxconn (also known as Hon Hai; 2317.TPE) to shut down a factory in northern China on Sunday, The Guardian reported. The fight lasted four hours, leaving 40 people hospitalized for treatment, the company said. Police detained several workers. The Taiyuan plant employs about 79,000 workers, and it is unclear how long the shutdown will last. Foxconn spokesman Louis Woo said the violence started in the workers’ dormitory facilities. Photos of smashed glass, riot police and crowds of workers were uploaded to social media sites but were later removed. Foxconn employs more than 1 million workers in the mainland and is the world’s largest contract maker of electronic goods, with customers such as Apple (AAPL.NASDAQ). The company has seen violence at its factories before, and there was a brief strike at the Taiyuan plant in March.