I would advise you to use a static boolean variable that would act as a semaphore for the access of the table. The connected client must "grab" that variable before accessing the required code.
Look! I laid an egg! Why does it smell like that? Tiny ad, does this smell weird to you?
Gift giving made easy with the permaculture playing cards