I am encountering a strange bug when I'm attempting to recursively call a method.
Its as if the compilers skips the setTimeout function.
I am calling the function from another function to start the recursion but the setTimeout doesn't call startFaceTracking() again.
I'm probably being stupid but can someone point it out the issue?
I have tried this,
function startFaceTracking() {
var eventHit = false;
if(!eventHit){
setTimeout(startFaceTracking,500);
}
}
and this
function startFaceTracking() {
var eventHit = false;
if(!eventHit){
setTimeout(function(){startFaceTracking();},500);
}
}
Thanks in advance,