X-Git-Url: http://git.pk910.de/?p=TransparentIRC.git;a=blobdiff_plain;f=src%2FIOEngine.h;h=8f4053b4823126e661c5b52d45eab8b4134a82aa;hp=0f33e81954cb13a83367beb329198a7b4375b97b;hb=HEAD;hpb=79b5ee62665a460214046003cdbe1b4b4f1fa39e diff --git a/src/IOEngine.h b/src/IOEngine.h index 0f33e81..8f4053b 100644 --- a/src/IOEngine.h +++ b/src/IOEngine.h @@ -46,7 +46,7 @@ struct IOEngine { void (*cleanup)(void); }; -#define iohandler_wants_writes(IOFD) (IOFD->writebuf.bufpos || IOFD->state == IO_CONNECTING) +#define iohandler_wants_writes(IOFD) ((IOFD->writebuf.bufpos && !IOFD->ssl_hs_read) || IOFD->state == IO_CONNECTING || IOFD->ssl_hs_write) void iohandler_log(enum IOLogType type, char *text, ...); void iohandler_events(struct IODescriptor *iofd, int readable, int writeable);