From d56ace6d5cc8861a04fffd83b1ae4473be6a2172 Mon Sep 17 00:00:00 2001 From: Steve Huston Date: Wed, 5 Jun 2002 22:52:01 +0000 Subject: Code fix from Alexander. --- examples/C++NPv2/AIO_Client_Logging_Daemon.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'examples/C++NPv2/AIO_Client_Logging_Daemon.cpp') diff --git a/examples/C++NPv2/AIO_Client_Logging_Daemon.cpp b/examples/C++NPv2/AIO_Client_Logging_Daemon.cpp index 3994cfb8f73..c45edf2c4a8 100644 --- a/examples/C++NPv2/AIO_Client_Logging_Daemon.cpp +++ b/examples/C++NPv2/AIO_Client_Logging_Daemon.cpp @@ -213,9 +213,8 @@ void AIO_Output_Handler::start_write (ACE_Message_Block *mblk) { getq (mblk, &nonblock); } if (mblk != 0) { - if (writer_.write (*mblk, mblk->length ()) == 0) - can_write_ = 0; - else + can_write_ = 0; + if (writer_.write (*mblk, mblk->length ()) == -1) ungetq (mblk); } } -- cgit v1.2.1