mirror of https://github.com/yandex/odyssey.git
Fix leaking routing counter
This commit is contained in:
parent
626067abb3
commit
96d23bc31d
|
@ -23,6 +23,7 @@ od_worker(void *arg)
|
||||||
{
|
{
|
||||||
od_worker_t *worker = arg;
|
od_worker_t *worker = arg;
|
||||||
od_instance_t *instance = worker->global->instance;
|
od_instance_t *instance = worker->global->instance;
|
||||||
|
od_router_t *router = worker->global->router;
|
||||||
|
|
||||||
for (;;) {
|
for (;;) {
|
||||||
machine_msg_t *msg;
|
machine_msg_t *msg;
|
||||||
|
@ -48,6 +49,7 @@ od_worker(void *arg)
|
||||||
"failed to create coroutine");
|
"failed to create coroutine");
|
||||||
od_io_close(&client->io);
|
od_io_close(&client->io);
|
||||||
od_client_free(client);
|
od_client_free(client);
|
||||||
|
od_atomic_u32_dec(&router->clients_routing);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
client->coroutine_id = coroutine_id;
|
client->coroutine_id = coroutine_id;
|
||||||
|
|
Loading…
Reference in New Issue