Use WriteEventsToClient rather than TryClientEvents where possible.
If filter is NoEventMask (aka CantBeFiltered), grab is null, and the first event is not in the set of "critical events", then TryClientEvents simply calls WriteEventsToClient. In that case, it returns 0 for fake or dead clients, and 1 otherwise. Inline for this special case. Signed-off-by: Jamey Sharp <firstname.lastname@example.org> Reviewed-by: Julien Cristau <email@example.com> Reviewed-by: Adam Jackson <firstname.lastname@example.org>
Showing with 11 additions and 12 deletions