I found a bug in the Unity Mixpanel package? If I ...
# questions
c
I found a bug in the Unity Mixpanel package? If I call…
Copy code
Mixpanel.People.Increment("Property", 1);
Mixpanel.Flush();
Mixpanel.Flush();
…this leads to Property incrementing by 2. As far as I can tell, this happens because the first web request hasn’t returned, so subsequent flushes keep sending it. Based on what “Flush” literally means, this seems like unintended behavior. (This exact code is a little silly, but “flush” is called in multiple places in my project, where this execution order can happen). The same problem exists with list append.