summaryrefslogtreecommitdiff
path: root/TAO/examples/Buffered_Oneways/client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/examples/Buffered_Oneways/client.cpp')
-rw-r--r--TAO/examples/Buffered_Oneways/client.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/TAO/examples/Buffered_Oneways/client.cpp b/TAO/examples/Buffered_Oneways/client.cpp
index 7851ec8638e..8f1469da973 100644
--- a/TAO/examples/Buffered_Oneways/client.cpp
+++ b/TAO/examples/Buffered_Oneways/client.cpp
@@ -230,6 +230,13 @@ main (int argc, char **argv)
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
+ if (buffering_constraint.mode == TAO::BUFFER_FLUSH)
+ {
+ ACE_ERROR((LM_ERROR, "Error : Must specify a timeout, message"
+ " count, or message bytes constraint.\n"));
+ return 1;
+ }
+
// Setup the constraints.
policy_current->set_policy_overrides (buffering_constraint_policy_list,
CORBA::ADD_OVERRIDE