use of org.fourthline.cling.support.igd.callback.PortMappingDelete in project libresonic by Libresonic.
the class ClingRouter method deletePortMappingImpl.
private void deletePortMappingImpl(Service connectionService, int port) throws Exception {
final Semaphore gotReply = new Semaphore(0);
upnpService.getControlPoint().execute(new PortMappingDelete(connectionService, createPortMapping(port)) {
@Override
public void success(ActionInvocation invocation) {
gotReply.release();
}
@Override
public void failure(ActionInvocation invocation, UpnpResponse response, String defaultMsg) {
gotReply.release();
}
});
gotReply.acquire();
}
Aggregations