Make sure we create enough sids as there are socket descriptors.

This commit is contained in:
Jan Vidar Krey 2009-08-02 22:29:12 +02:00
parent 4931dc5dcb
commit 0e1cd903da

View File

@ -97,7 +97,7 @@ int uman_init(struct hub_info* hub)
return -1; return -1;
users->list = list_create(); users->list = list_create();
users->sids = sid_pool_create(MAX(1024, (hub->config->max_users + 24))); users->sids = sid_pool_create(net_get_max_sockets());
if (!users->list) if (!users->list)
{ {