to feel unhappy after a defeat or an unpleasant experience
Usage notes: When dogs and other animals are injured, they lick their wounds (= injuries) in order to help them get better.
After retiring to lick its wounds, the party is regaining its confidence. See