The rioting at the current level is in no way endangering the Iranian republic. Should some rioters acquire weapons the intensity might change a bit. But unless they receive material and personal support from the outside, like it happened in Syria, the situation will soon calm down. The people of Iran are against such violence and the government has yet to use its manifold capabilities.
Source