Fix isOnline for SHowupModel
This commit is contained in:
parent
1a5c32167e
commit
39c1fd94ba
|
@ -28,14 +28,16 @@ public class ShowupModel extends AbstractModel {
|
|||
|
||||
@Override
|
||||
public boolean isOnline(boolean ignoreCache) throws IOException, ExecutionException, InterruptedException {
|
||||
if(ignoreCache) {
|
||||
List<Model> modelList = getShowupSite().getModelList();
|
||||
for (Model model : modelList) {
|
||||
ShowupModel m = (ShowupModel) model;
|
||||
if (m.getUid() == uid) {
|
||||
return m.getOnlineState(false) != State.ONLINE;
|
||||
setOnlineState(m.getOnlineState(false));
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
return getOnlineState(false) == State.ONLINE;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue