Term: beating off a dead horse
Example: dude: i was out beating off a dead horse last night, but may hand started to cramp up, so i just went home instead
Definition: to continue trying to beat off a horse when it clearly isn't going to work anymore due to lack of blood flow