This bend will give enough force to stop the door from closing. Take the pin out of the hinge and put it in with your hammer. Is that correct? You can bend the pin a little more if the door doesn't close on its own.
Let's Get It Fixed!
HomeX virtual experts will assess your issue (for free!) and can resolve simple problems.