Your question aside, look at it this way, you have still viewed porn. Therein lies the problem. If you are resorting to stopping masturbation, and then looking at porn, then it's definitely an issue. You need to cut out porn completely. Edging is highly risky, as it leads you too close on the path to a relapse.