Signed-off-by: Martin <molnam1@fel.cvut.cz>
static int udp_close(URLContext *h)
{
UDPContext *s = h->priv_data;
static int udp_close(URLContext *h)
{
UDPContext *s = h->priv_data;
- ret1 = frsh_send_endpoint_destroy(s->sepoint);
- ret2 = frsh_receive_endpoint_destroy(s->repoint);
- return (ret1 || ret2);
+ frsh_send_endpoint_unbind(s->sepoint);
+ ret = frsh_contract_cancel(s->vres);
+ return ret;
}
URLProtocol udp_protocol = {
}
URLProtocol udp_protocol = {