1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-12-22 18:48:00 +01:00

Fix nodeVer generation for local caps information

This was broken with 5dd97a363c, where
currentCapsVersion was changed from String to CapsVersionAndHash.
This commit is contained in:
Florian Schmaus 2014-12-10 15:42:31 +01:00
parent 4c2d5d797a
commit b3b42f3a9b

View file

@ -475,7 +475,7 @@ public class EntityCapsManager extends Manager {
sdm.addDiscoverInfoTo(discoverInfo); sdm.addDiscoverInfoTo(discoverInfo);
currentCapsVersion = generateVerificationString(discoverInfo); currentCapsVersion = generateVerificationString(discoverInfo);
addDiscoverInfoByNode(entityNode + '#' + currentCapsVersion, discoverInfo); addDiscoverInfoByNode(entityNode + '#' + currentCapsVersion.version, discoverInfo);
if (lastLocalCapsVersions.size() > 10) { if (lastLocalCapsVersions.size() > 10) {
CapsVersionAndHash oldCapsVersion = lastLocalCapsVersions.poll(); CapsVersionAndHash oldCapsVersion = lastLocalCapsVersions.poll();
sdm.removeNodeInformationProvider(entityNode + '#' + oldCapsVersion.version); sdm.removeNodeInformationProvider(entityNode + '#' + oldCapsVersion.version);