Avoiding a two-front war