Members of county boards of elections, and custodians of voting machines shall be privileged from arrest while performing their duties as such under this act, except upon warrant of a court of record or judge thereof, for felony, for wanton breach of the peace or for a criminal violation of this act.
25 P.S.§ 2651