Jorge Lorenzo revealed he considered retiring from the Dutch TT on Sunday after struggling heavily at the rain-affected race in Assen.
Lorenzo had worked his way up to fifth from his starting position of 10th, but dropped down to as low as 19th during the race before it was red flagged due to the torrential rain.
The Spaniard eventually guided his Movistar Yamaha home in 10th following the restart, but only after several riders in front of him crashed out of the race.
Lorenzo said he struggled with grip due to the track's changing conditions before he was able to coast the bike home for a valuable points finish.
"In the first race I was in 19th place and the last rider. I was even thinking about stopping because the conditions on the track were terrible, but I kept riding and they stopped the race," the three-time MotoGP champion said.
"We restarted the race with less water on the track and a soft rear tyre and, though I was one of the last ones and there were many crashes, I gained more confidence than I had in the first race."
Lorenzo picked up six points with his 10th-place finish, meaning he is now 24 behind championship-leader Marc Marquez, while team-mate Valentino Rossi picked up none after crashing out.
"These are important points for the championship, in the first race I would not have scored any. Marquez also scored a lot of points today, but Rossi, who could have recovered points, lost a lot," Lorenzo added.
"Ultimately we were able to save a difficult weekend. Before Le Mans we were also around 24 points behind and now we are more or less in the same situation, after two difficult races, so we have to think positive and keep in mind that we still have a lot of races to recover the gap to Marquez."
Australian Jack Miller claimed the win in Assen for his maiden MotoGP triumph.