if(!peer->found)
delpeer(peer);
}
- fn->trackpeers = 1;
} else if(resp->code == 201) {
while(fn->peers != NULL)
delpeer(fn->peers);
- fn->trackpeers = 1;
}
data->callback(fn, resp->code, data->data);
free(data);
}
break;
case 630:
- if(((fn = dc_findfnetnode(ires->argv[0].val.num)) != NULL) && fn->trackpeers)
+ if((fn = dc_findfnetnode(ires->argv[0].val.num)) != NULL)
{
if((peer = dc_fnetfindpeer(fn, ires->argv[1].val.str)) == NULL)
addpeer(fn, ires->argv[1].val.str, ires->argv[2].val.str);
}
break;
case 631:
- if(((fn = dc_findfnetnode(ires->argv[0].val.num)) != NULL) && fn->trackpeers)
+ if((fn = dc_findfnetnode(ires->argv[0].val.num)) != NULL)
{
if((peer = dc_fnetfindpeer(fn, ires->argv[1].val.str)) != NULL)
delpeer(peer);
}
break;
case 632:
- if(((fn = dc_findfnetnode(ires->argv[0].val.num)) != NULL) && fn->trackpeers)
+ if((fn = dc_findfnetnode(ires->argv[0].val.num)) != NULL)
{
if((peer = dc_fnetfindpeer(fn, ires->argv[1].val.str)) != NULL)
{