Browse Source

Search the user proxy list when looking up proxy_by_id

master
Con Kolivas 10 years ago
parent
commit
92d1572e0a
  1. 2
      src/generator.c

2
src/generator.c

@ -1298,6 +1298,8 @@ static proxy_instance_t *proxy_by_id(gdata_t *gdata, const int id)
mutex_lock(&gdata->lock); mutex_lock(&gdata->lock);
HASH_FIND_INT(gdata->proxies, &id, proxi); HASH_FIND_INT(gdata->proxies, &id, proxi);
if (!proxi)
HASH_FIND_INT(gdata->user_proxies, &id, proxi);
mutex_unlock(&gdata->lock); mutex_unlock(&gdata->lock);
return proxi; return proxi;

Loading…
Cancel
Save