Problem with wait_ptrigger_data being issued twice on same time-slice/tick

In reply to cgales:

Thank you for the replay,
I understand the problems…
Any suggestion what modification to do in order it to work?