while(true)
is an infinite loop, the only way of getting out of it is using break
. Or changing while(true)
to some condition that alternatively ends.
In this code, the while(true)
part makes no real sense to me, you should probably add something else to that part as well, e.g. some connection stuff etc.
6
solved While (true) loop lagg [closed]