diff options
Diffstat (limited to 'lib/ZIfNotice.c')
-rw-r--r-- | lib/ZIfNotice.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/ZIfNotice.c b/lib/ZIfNotice.c index 8c87aa4..7b4af2a 100644 --- a/lib/ZIfNotice.c +++ b/lib/ZIfNotice.c @@ -31,12 +31,7 @@ Code_t ZIfNotice(notice, from, predicate, args) char *buffer; struct _Z_InputQ *qptr; - if (ZQLength()) - retval = Z_ReadEnqueue(); - else - retval = Z_ReadWait(); - - if (retval != ZERR_NONE) + if ((retval = Z_WaitForComplete()) != ZERR_NONE) return (retval); qptr = (struct _Z_InputQ *) Z_GetFirstComplete(); |