diff options
Diffstat (limited to 'TAO/orbsvcs/tests/Event/UDP/receiver.cpp')
-rw-r--r-- | TAO/orbsvcs/tests/Event/UDP/receiver.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/TAO/orbsvcs/tests/Event/UDP/receiver.cpp b/TAO/orbsvcs/tests/Event/UDP/receiver.cpp index e538b520a3f..8024ef6f70b 100644 --- a/TAO/orbsvcs/tests/Event/UDP/receiver.cpp +++ b/TAO/orbsvcs/tests/Event/UDP/receiver.cpp @@ -243,6 +243,10 @@ main (int argc, char* argv[]) } ACE_Time_Value tv (0, 100000); ACE_OS::sleep (tv); + if (consumer.event_count () == 25) + { + break; + } } // **************** THAT COMPLETES THE EVENT LOOP @@ -302,7 +306,7 @@ main (int argc, char* argv[]) // **************** THAT COMPLETES THE CLEANUP CODE ACE_DEBUG ((LM_DEBUG, - "MCast example terminated\n")); + "UDP receiver ready\n")); } ACE_CATCHANY { |