It is very common to be tangled in such confusion, when 1 thing happens.
Proverbs 25:28
"He that has no rule over his own spirit is like a city that is broken down, and without walls"
You, like i was, my friend, are not the master of yourself and your desires.
Your desires are the master of you.
You can not become the master of your desires, without the grace of God.
Each day you must pray to Jesus Christ, to give you His grace, to shield you with it, in order to shield you from your desires.
When, after some time, you continue your prayers, each day, and throughout the day, God Will shield you from the desires which are the master of you right now. And then, my friend, you, with the help of God's grace, will achieve to be the master of your desires. You will control when and if you want something. Not your desires telling you when to do something and what to want(specifically about the porn addiction).
Speaking from experience, and lots lots lots of struggle and suffering, this is the only way. And you can not do it yourself. Only Jesus Christ can do it for you. His grace is the only shield that can hold our desires at bay.
Mind you, my friend, this is not something that you will earn at some point and then just forget about everything and move on with your life.
A christian's life is all about struggle, and we must all fight the good fight throughout our life, and, upon death, await for our Lord, to receive us in paradise, where we will not have to struggle any more.
Life, is not a hollywood movie.
This will be your struggle, a lifelong one.
And everyday, and throughout the day, you ask for our Lord's grace.
Say the common prayer everyday, not only once, but as often throughout the day as you like. And if at some point you do not want to say it, struggle and do say it, because the devil will want to claim you back and enslave you once more, as he has enslaved you now to your desires. You are not a free man, my friend, but a slave to your desires. Ask God for His grace, through repeating and saying the Lord's prayer. But don't aimlessly say it in your mind. Pay attention to the words, to each and every word.
Our Heavenly Father (think when you say it, "do i consider God as my Father, or my creator?" And slowly you will see through God's grace that He is.
thou art in heaven, hallowed be thy name,
thy will be done (think, is there anything better than having the Lord's will to be done? isn't the allknowing God's will better to be done, than your own will be done, who do not know anything?)..... think while you pray on each word....think....
forgive us our debts (sins), as we forgive our debtors (those who have sinned against us)... think "in order for God to forgive me, i must forgive everyone who has wronged me.....have i?"....
If you chose to go to church, find one where you feel LOVE by the pastor or priest and from the people who attend it. Don't go to a church where a priest or pastor yells about how people MUST do things or else they will go to hell.....
Do these things my friend, and with God's grace through prayer, fight the good fight, and never let your guard down.