... | ... | @@ -56,8 +56,7 @@ int main(int argc, char *argv[]) { |
|
|
// Once here, we are sure that the subscriber is ready and will be able to receive all the messages.
|
|
|
|
|
|
} catch (const PublisherCreationException& e) {
|
|
|
// The Publisher cannot be created. Clean up.
|
|
|
application::This::terminate();
|
|
|
// The Publisher cannot be created.
|
|
|
return -1;
|
|
|
}
|
|
|
|
... | ... | @@ -73,9 +72,6 @@ int main(int argc, char *argv[]) { |
|
|
publisher->sendEnd();
|
|
|
}
|
|
|
|
|
|
// The application terminates.
|
|
|
application::This::terminate();
|
|
|
|
|
|
return 0;
|
|
|
}
|
|
|
</code></pre>
|
... | ... | |