How to make a delay between taps

I have this function which a bottle drops and rotates for around 1.2 sec till touches the ground or the bucket ,when the screen is touched . How to make a time delay so the bottle will rotate only once till its dropped on the ground. Because if i touch the screen multi times the function will apply each and the rotation would change in air for each touch.

local function pushbottle() transition.to( bottle, { rotation=( math.random(-180,180) ), time=1300} ) physics.setGravity(0,9) bottle.bodyType = "dynamic" end Runtime:addEventListener( "tap", pushbottle )

Thank you in advance!