I had a throw down with a wild boar once . Me and my .357 mag. It took 3 shots . After the first 2 it got up and charged me more . Closer each time The 3rd stopped it, 5 ft away . It was close.
Now, I’m betting you double-check that gun to ensure it’s loaded.
Wild boars are large and mean animals. I have taken down a bunch of them with a .223 at distance. Never been in close contact with one of them. But, I do carry a .45 long colt as a just in case.