diff options
Diffstat (limited to 'cpp/examples/messaging/topic_receiver.cpp')
-rw-r--r-- | cpp/examples/messaging/topic_receiver.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cpp/examples/messaging/topic_receiver.cpp b/cpp/examples/messaging/topic_receiver.cpp index 321231f93d..13f881e574 100644 --- a/cpp/examples/messaging/topic_receiver.cpp +++ b/cpp/examples/messaging/topic_receiver.cpp @@ -35,7 +35,8 @@ int main(int argc, char** argv) { const std::string pattern = argc>2 ? argv[2] : "#.#"; try { - Connection connection = Connection::open(url); + Connection connection; + connection.open(url); Session session = connection.newSession(); Receiver receiver = session.createReceiver("news_service; {filter:[control, " + pattern + "]}"); while (true) { |