2
0
Fork 0

prevent double decrement of wrk->connection_load and active connections

personal/stbuehler/wip
Thomas Porzelt 2008-11-23 18:21:45 +01:00
parent f02689bafb
commit 865aea2ce0
1 changed files with 4 additions and 0 deletions

View File

@ -425,6 +425,10 @@ static connection* worker_con_get(worker *wrk) {
void worker_con_put(connection *con) {
worker *wrk = con->wrk;
if (con->state == CON_STATE_DEAD)
/* already disconnected */
return;
connection_reset(con);
g_atomic_int_add((gint*) &wrk->connection_load, -1);