mirror of
https://github.com/osmarks/ngircd.git
synced 2025-02-07 12:50:03 +00:00
Conn_Handler(): Don't test for penalty times
The Conn_Handler() main loop calls Handle_Buffer() which checks for the "penalty time" of each client itself, so don't do it twice.
This commit is contained in:
parent
b4393277ea
commit
a2e26aad1e
@ -853,8 +853,7 @@ Conn_Handler(void)
|
|||||||
/* Look for non-empty read buffers ... */
|
/* Look for non-empty read buffers ... */
|
||||||
for (i = 0; i < Pool_Size; i++) {
|
for (i = 0; i < Pool_Size; i++) {
|
||||||
if ((My_Connections[i].sock > NONE)
|
if ((My_Connections[i].sock > NONE)
|
||||||
&& (array_bytes(&My_Connections[i].rbuf) > 0)
|
&& (array_bytes(&My_Connections[i].rbuf) > 0)) {
|
||||||
&& (My_Connections[i].delaytime <= t)) {
|
|
||||||
/* ... and try to handle the received data */
|
/* ... and try to handle the received data */
|
||||||
bytes_processed = Handle_Buffer(i);
|
bytes_processed = Handle_Buffer(i);
|
||||||
/* if we processed data, and there might be
|
/* if we processed data, and there might be
|
||||||
|
Loading…
x
Reference in New Issue
Block a user