fix discover method
This commit is contained in:
parent
3917487cb4
commit
2f974e7e6e
|
@ -27,7 +27,7 @@ public class JavaBridgeTest {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
devlist = miniupnpc.upnpDiscover(UPNP_DELAY, (String) null, (String) null, 0, null);
|
devlist = miniupnpc.upnpDiscover(UPNP_DELAY, (String) null, (String) null, 0, 0, IntBuffer.allocate(1));
|
||||||
if (devlist != null) {
|
if (devlist != null) {
|
||||||
System.out.println("List of UPNP devices found on the network :");
|
System.out.println("List of UPNP devices found on the network :");
|
||||||
for (UPNPDev device = devlist; device != null; device = device.pNext) {
|
for (UPNPDev device = devlist; device != null; device = device.pNext) {
|
||||||
|
|
Loading…
Reference in New Issue