Suspension of gun sales in antebellum New York?

Christopher L Miller's picture

Query: I've come across a reference in a religious tract, date of publication unknown, about the suspension of trade in firearms as a precaution in the interest of public safety stemming from "a warmly contested election in the city of New York." Can anyone pinpoint for me what and when this election may have been? The closest I can come a window of time would be between 1827 and 1851. Any help would be appreciated.