projects
/
pazpar2-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' into paz-927
[pazpar2-moved-to-github.git]
/
src
/
session.c
diff --git
a/src/session.c
b/src/session.c
index
ff0e038
..
39dfb90
100644
(file)
--- a/
src/session.c
+++ b/
src/session.c
@@
-508,7
+508,6
@@
static void select_targets_callback(struct session *se,
l->next = se->clients_cached;
se->clients_cached = l;
}
l->next = se->clients_cached;
se->clients_cached = l;
}
- /* set session always. If may be 0 if client is not active */
client_set_session(cl, se);
l = xmalloc(sizeof(*l));
client_set_session(cl, se);
l = xmalloc(sizeof(*l));
@@
-557,6
+556,7
@@
static void session_remove_cached_clients(struct session *se)
client_lock(l->client);
client_set_session(l->client, 0);
client_set_database(l->client, 0);
client_lock(l->client);
client_set_session(l->client, 0);
client_set_database(l->client, 0);
+ client_mark_dead(l->client);
client_unlock(l->client);
client_destroy(l->client);
xfree(l);
client_unlock(l->client);
client_destroy(l->client);
xfree(l);