Added TODO and fine tuned trace logging.

fix-message-formatting
Danny van Heumen 12 years ago
parent a98f527263
commit a2816b156c

@ -368,6 +368,8 @@ public List<String> getServerChatRoomList()
// channels, since it isn't available.
synchronized (this.channellist)
{
// TODO time out channel list cache and refresh it regularly (every
// minute?)
if (this.channellist.instance == null)
{
Result<List<String>, Exception> listSignal =
@ -393,8 +395,12 @@ public List<String> getServerChatRoomList()
}
}
this.channellist.instance = listSignal.getValue();
LOGGER.trace("Finished retrieve server chat room list.");
}
else
{
LOGGER.trace("Using cached list of server chat rooms.");
}
LOGGER.trace("Finished retrieve server chat room list.");
return Collections.unmodifiableList(this.channellist.instance);
}
}

Loading…
Cancel
Save