ohio813 / bnubot

Automatically exported from code.google.com/p/bnubot
0 stars 0 forks source link

BNetUser cache causing problems #36

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Log in two profiles on different realms of the same gateway, or change
realms of the same gateway

What is the expected output?
BNetUser.getShortLoginName() should re-evaluate whether to display the realm

What do you see instead?
The original, cached, decision is used

Original issue reported on code.google.com by sco...@gmail.com on 7 Dec 2007 at 4:25

GoogleCodeExporter commented 9 years ago
Completely removed the BNetUser cache. In its place, the getBNetUser() methods 
were
added to the Connection class. Instead of checking in the cache, they will 
iterate of
the users presently in the channel, per r957. If it finds a user, it will 
return a
modified perspective clone with the save flags/ping/statstr. Otherwise, it will
return a new user with NULL flags/ping/statstr.

Original comment by sco...@gmail.com on 12 Dec 2007 at 8:37