projects
/
pazpar2-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8280939
)
Simplify http_server_destroy
author
Adam Dickmeiss
<adam@indexdata.dk>
Tue, 23 Mar 2010 14:33:43 +0000
(15:33 +0100)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Tue, 23 Mar 2010 14:33:43 +0000
(15:33 +0100)
src/http.c
patch
|
blob
|
history
diff --git
a/src/http.c
b/src/http.c
index
60d8e30
..
8321bb3
100644
(file)
--- a/
src/http.c
+++ b/
src/http.c
@@
-1374,14
+1374,9
@@
void http_server_destroy(http_server_t hs)
{
int r;
- if (hs->mutex)
- {
- yaz_mutex_enter(hs->mutex);
- r = --(hs->ref_count);
- yaz_mutex_leave(hs->mutex);
- }
- else
- r = --(hs->ref_count);
+ yaz_mutex_enter(hs->mutex); /* OK: hs->mutex may be NULL */
+ r = --(hs->ref_count);
+ yaz_mutex_leave(hs->mutex);
if (r == 0)
{