It's a terrible method that will cause much worse emotional reactions to other dogs. He is reinforcing the thought in her head that other dogs around her make terrible, scary, uncomfortable things happen. The prompt way to do this would be to give her extra special treats when she sees another dog to make her build a positive association. Punishing or 'controlling' a dog like this is bad. She wasn't 'calm' she was shutting down.