Every endeavor must be used, both by the magistrate and civil officers, and by the officer commanding the troops, which can be made consistently with the preservation of life, to induce or force the rioters to disperse before an attack is made upon them by which their lives may be endangered.
R.L.1910, § 5590.