Events such as on_player_ping are called more than once as there is no sync between the upstream and downstream threads to determine if the event has already been called. There are two ways to fix this:
Remove the call function for the events from one thread function (Only have it in upstream rather than both downstream and upstream)
Have a variable such as self.on_ping_event_called of type bool as a connection between the two threads to determine if one of the two threads has already called the event
Events such as
on_player_ping
are called more than once as there is no sync between theupstream
anddownstream
threads to determine if the event has already been called. There are two ways to fix this:Remove the call function for the events from one thread function (Only have it in upstream rather than both downstream and upstream)
Have a variable such as
self.on_ping_event_called
of type bool as a connection between the two threads to determine if one of the two threads has already called the event