summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2016-09-19 02:14:03 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2016-09-19 02:14:03 +0200
commitfe320116dae05e61481e75297f402f1af956c5d6 (patch)
tree792ab3b7e69306c252c7e8a747d9878cf407cd25
parentf5fcb42cffce91e8142c6934e398c11c95e907ec (diff)
parentcbdf48454fece6380a0ad713d53902f65bf9308b (diff)
downloadplan9front-fe320116dae05e61481e75297f402f1af956c5d6.tar.xz
merge
-rw-r--r--sys/src/cmd/webfs/http.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/src/cmd/webfs/http.c b/sys/src/cmd/webfs/http.c
index ef53e4e8a..33cec2122 100644
--- a/sys/src/cmd/webfs/http.c
+++ b/sys/src/cmd/webfs/http.c
@@ -100,8 +100,8 @@ hdial(Url *u, int cached)
snprint(addr, sizeof(addr), "tcp!%s!%s", u->host, u->port ? u->port : u->scheme);
+ qlock(&hpool);
if(cached){
- qlock(&hpool);
for(p = nil, h = hpool.head; h; p = h, h = h->next){
if(strcmp(h->addr, addr) == 0){
if(p)
@@ -113,9 +113,9 @@ hdial(Url *u, int cached)
return h;
}
}
- hpool.active++;
- qunlock(&hpool);
}
+ hpool.active++;
+ qunlock(&hpool);
if(debug)
fprint(2, "hdial [%d] %s\n", hpool.active, addr);