Well, to be very precise that equation has no solution actually. ∞ is no number, and you can't count with it as if it was a number. ∞ is mostly relevant only when you compute limits of a function.
But you can still think of it as a number and do some sloppy calculations, physicists or engineers like to do it that way. So infinity is a correct solution seen
that way, but from a purely mathematical point of view it isn't.
Infinites are dangerous. Say you have the equation x+2=24. If the above infinite solution is true, "nothing" says you can't add and take a number x+2+∞=24+∞. Then x+∞=∞ and x=0 (or any number, depends on how you do). Which obviously is no good solution.
//Engineering Physicist