Toronto police are investigating a potential threat to Mayor Rob Ford and his family, according to the mayor's office.

Two uniformed police officers were led into the mayor’s office at Toronto City Hall on Friday afternoon, where they stayed for about 30 minutes, CP24's Katie Simpson reported. The mayor's press secretary said police were called to the office due to a potential threat.

Police have not said what the nature of the potential threat was, and the two officers were seen leaving Ford's office without comment.

Earlier on Friday, Ford said he wanted to see the Canadian flag raised at city hall instead of the rainbow flag. He said the Olympics are about "being patriotic to your country" and not "about someone's sexual preference."

Ford's spokesperson, Amin Massoudi, said the potential threat is unrelated to his opinion on the flag.

With files from CP24