forked from enlightenment/efl
Fix client limit when reject excess clients is enabled
SVN revision: 45665
This commit is contained in:
parent
534777a65a
commit
41a0d4dbff
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue