mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-07 02:03:14 +02:00
- Fix compile failure introduced by fdb2fd1f8963 when zip links are disabled.
This commit is contained in:
@@ -2291,3 +2291,5 @@
|
||||
connection was never actually sent (due to buffering). Hence, things like
|
||||
the /SQUIT reason was never seen on the other side (just 'server closed
|
||||
the connection'). This has now been fixed.
|
||||
- Fix compile failure introduced by last change when zip links are
|
||||
disabled.
|
||||
|
||||
+10
-2
@@ -120,11 +120,19 @@ void flush_connections(aClient* cptr)
|
||||
{
|
||||
for (i = LastSlot; i >= 0; i--)
|
||||
if ((acptr = local[i]) && !(acptr->flags & FLAGS_BLOCKED)
|
||||
&& ((DBufLength(&cptr->sendQ) > 0) || (IsZipped(cptr) && cptr->zip->outcount)) )
|
||||
&& ((DBufLength(&cptr->sendQ) > 0)
|
||||
#ifdef ZIP_LINKS
|
||||
|| (IsZipped(cptr) && cptr->zip->outcount)
|
||||
#endif /* ZIP_LINKS */
|
||||
) )
|
||||
send_queued(acptr);
|
||||
}
|
||||
else if (cptr->fd >= 0 && !(cptr->flags & FLAGS_BLOCKED)
|
||||
&& ((DBufLength(&cptr->sendQ) > 0) || (IsZipped(cptr) && cptr->zip->outcount)) )
|
||||
&& ((DBufLength(&cptr->sendQ) > 0)
|
||||
#ifdef ZIP_LINKS
|
||||
|| (IsZipped(cptr) && cptr->zip->outcount)
|
||||
#endif /* ZIP_LINKS */
|
||||
) )
|
||||
send_queued(cptr);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user