I am using sleekxmpp to connect to Google Talk. I am trying to track when contacts change their status using the changed_status event. The issue I am having is that as I log a status change, the function associated with the changed_status event seems to be called multiple times. Why might this be?
I am thinking it has something to do with the way that contact is logged into Google Talk, that is they may have it open multiple times from the same computer. So when they close their computer it affects both sessions, and each session triggers a changed_status event.
Check the resource associated with each change.  If the resources are all different for the same user, it is because the user is logged on from several different clients, perhaps from multiple different machines.  You will get presence updates from all of the user's clients if you're subscribed to them.
sleekxmpp changed_status event, firing multiple times