mirror of
https://salsa.debian.org/ha-team/libqb
synced 2026-01-21 12:36:54 +00:00
IPC: better handle a disconnect been called from within connection_created()
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
This commit is contained in:
parent
55e4c3048a
commit
7d9df9ef74
@ -612,10 +612,14 @@ send_response:
|
||||
}
|
||||
|
||||
if (res == 0) {
|
||||
qb_ipcs_connection_ref(c);
|
||||
if (s->serv_fns.connection_created) {
|
||||
s->serv_fns.connection_created(c);
|
||||
}
|
||||
c->state = QB_IPCS_CONNECTION_ESTABLISHED;
|
||||
if (c->state == QB_IPCS_CONNECTION_ACTIVE) {
|
||||
c->state = QB_IPCS_CONNECTION_ESTABLISHED;
|
||||
}
|
||||
qb_ipcs_connection_unref(c);
|
||||
} else {
|
||||
if (res == -EACCES) {
|
||||
qb_util_log(LOG_ERR, "Invalid IPC credentials.");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user