mirror of
https://github.com/osmarks/ngircd.git
synced 2025-01-19 03:52:52 +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 ... */
|
||||
for (i = 0; i < Pool_Size; i++) {
|
||||
if ((My_Connections[i].sock > NONE)
|
||||
&& (array_bytes(&My_Connections[i].rbuf) > 0)
|
||||
&& (My_Connections[i].delaytime <= t)) {
|
||||
&& (array_bytes(&My_Connections[i].rbuf) > 0)) {
|
||||
/* ... and try to handle the received data */
|
||||
bytes_processed = Handle_Buffer(i);
|
||||
/* if we processed data, and there might be
|
||||
|
Loading…
Reference in New Issue
Block a user