Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resource tracking in OutQueueConsumer seems defunct #277

Open
ashward opened this issue Nov 24, 2014 · 3 comments
Open

Resource tracking in OutQueueConsumer seems defunct #277

ashward opened this issue Nov 24, 2014 · 3 comments

Comments

@ashward
Copy link
Contributor

ashward commented Nov 24, 2014

The resource tracking code in OutQueueConsumer doesn't seem to work. Nothing seems to be actually tracking resources so the onlineUsers map never seems to get populated with anything. It's causing me a problem with notifications to local admin users.

I guess we could safely get rid of that code now - specifically this bit:

            // Get a list of 'online' resources for this JID
            ArrayList<JID> resources = onlineUsers.getResources(p.getTo());
            logger.debug("There are " + resources.size() + " online resources for " + p.getTo());
            for (JID resource : resources) {
                p.setTo(resource);
                component.sendPacket(p.createCopy());
            }

Happy to make the change myself, but thought I'd check there's no reason for it to still be in there.

@lloydwatkin
Copy link
Member

@ashward
Copy link
Contributor Author

ashward commented Nov 25, 2014

Ah, you're right. But it doesn't seem to be working - it's coming up as 0 resources for all the local users as far as I can tell. I'll do a bit more digging when I have a bit more spare time :)

@lloydwatkin
Copy link
Member

Are you using database or in-memory store? If database have you applied the most recent updates?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants