summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorjxh <jxh@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-08-03 05:13:36 +0000
committerjxh <jxh@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-08-03 05:13:36 +0000
commite98daf88a3e32feed35874a4d61ea91d3d78a54a (patch)
tree9e002663bbbf67ad2785a42438565f5e0bf7f5bd /apps
parentffb16a4fe86499b143242580c2157528b1befbeb (diff)
downloadATCD-e98daf88a3e32feed35874a4d61ea91d3d78a54a.tar.gz
Fixed return status.
Diffstat (limited to 'apps')
-rw-r--r--apps/JAWS/PROTOTYPE/HTTP_10_Write.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/apps/JAWS/PROTOTYPE/HTTP_10_Write.cpp b/apps/JAWS/PROTOTYPE/HTTP_10_Write.cpp
index be94198ae6b..255f2b1448b 100644
--- a/apps/JAWS/PROTOTYPE/HTTP_10_Write.cpp
+++ b/apps/JAWS/PROTOTYPE/HTTP_10_Write.cpp
@@ -81,8 +81,15 @@ JAWS_HTTP_10_Write_Task::handle_put (JAWS_Data_Block *data, ACE_Time_Value *)
0,
"",
0);
- if (handler->status () == JAWS_IO_Handler::TRANSMIT_OK)
- return 0;
+ switch (handler->status ())
+ {
+ case JAWS_IO_Handler::TRANSMIT_OK:
+ return 0;
+ case JAWS_IO_Handler::TRANSMIT_ERROR:
+ return -1;
+ default:
+ return 1;
+ }
}
return -1;