Hi,
The queue member list is updated any time any event that involves a queue is generated, be sure you have "eventwhencalled=yes" for your queue configuration, that is important too. And there is another setting that I do not like much but might make a difference "eventmemberstatus=yes"
You do not have to dig into the code, you can help by reproducing the problem. Start fresh, log into your queue, do whatever you do until you see that the orange shirt gets sticky.
Do this every time, so the behavior is consistent, so you can tell me: I have queues configured in this way, members in that other way, I start fop2, then log an agent in this manner, some call arrives, and BUM the problem happens. EVERY TIME.
If you can reproduce the issue and tell me the steps to follow to reproduce it locally, then I will be able to work on a fix. If it happens sporadically, then we are out of luck and troubleshooting will be hard as hell.