|
|
|
|
@ -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);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|