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:
111cd7b
)
Avoid client_set_state on destroyed client
author
Adam Dickmeiss
<adam@indexdata.dk>
Fri, 23 Apr 2010 11:54:21 +0000
(13:54 +0200)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Fri, 23 Apr 2010 11:54:21 +0000
(13:54 +0200)
Call client_set_state before connection_destroy because
connection_destroy might remove client (reference count 0).
src/connection.c
patch
|
blob
|
history
diff --git
a/src/connection.c
b/src/connection.c
index
e4c05f1
..
f1c19ec
100644
(file)
--- a/
src/connection.c
+++ b/
src/connection.c
@@
-258,8
+258,8
@@
static void connection_handler(IOCHAN iochan, int event)
{
yaz_log(YLOG_WARN, "connect timeout %s", client_get_url(cl));
- connection_destroy(co);
client_set_state(cl, Client_Error);
+ connection_destroy(co);
}
else if (client_get_state(co->client) == Client_Idle)
{