Fixed SSDPClient list display

This commit is contained in:
Ziver Koc 2015-10-29 20:40:27 +01:00
parent fb2f5e048a
commit de1eba7164

View file

@ -130,8 +130,9 @@ public class CoderClient extends Application{
closeCurrentSession();
selectServerDialog.clearServerList();
if(ssdpClient != null){
ssdpClient.clearServices();
ssdpClient.requestService("coder:discover");
for(StandardSSDPInfo server : ssdpClient.getServices("coder:discover"))
selectServerDialog.addServerToList(server.getInetAddress().getHostAddress());
}else{
logger.severe("could not send a SSDP request since the client is not setup");
}