That's sweet. Nice gesture, I probably would've hugged the other guy tho, not the one throwing the punches.
Actually there's a thing called "holding therapy" and other methods based on it, in which hugging is basically used to reduce anger mostly with children. I guess it works with adults too.