My function “OnFindSessionComplete()” has a strange behavior.
It runs more times than it should.
-The first time I click it runs once.
-The second time I click it runs twice.
-The third time I click it runs three times.
And so on.
You can see it in this video.
this is my code
When the loop executes there is always only one iteration, and it says that it has only found one session. So the entire function must be running multiple times.
In the call to the function I only do it once.
Do you know why this happens?
Thank you so much!!