Fix client limit when reject excess clients is enabled

SVN revision: 45665
This commit is contained in:
Lars Munch 2010-01-28 16:05:34 +00:00
parent 534777a65a
commit 41a0d4dbff
1 changed files with 5 additions and 2 deletions

View File

@ -1072,8 +1072,11 @@ _ecore_con_svr_handler(void *data, Ecore_Fd_Handler *fd_handler __UNUSED__)
if ((svr->client_limit >= 0) && (svr->reject_excess_clients))
{
close(new_fd);
return 1;
if (eina_list_count(svr->clients) >= svr->client_limit)
{
close(new_fd);
return 1;
}
}
cl = calloc(1, sizeof(Ecore_Con_Client));