A peace officer may order the participants in a riot or unlawful assembly or persons in the immediate vicinity of a riot or unlawful assembly to disperse. Any person within hearing distance of such command, who refuses to obey, violates this section.