From 9bc1be8481473dcad18c2c420d3f388a8cb80c78 Mon Sep 17 00:00:00 2001 From: tastytea Date: Thu, 9 Jan 2020 19:05:37 +0100 Subject: [PATCH] Shorten streaming example. --- examples/example02_streaming.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/examples/example02_streaming.cpp b/examples/example02_streaming.cpp index b3984f2..1ac1b8f 100644 --- a/examples/example02_streaming.cpp +++ b/examples/example02_streaming.cpp @@ -76,8 +76,7 @@ int main(int argc, char *argv[]) // Cancel the stream, … connection.cancel_stream(); - // … and get the rest of the data. - cout << connection.get_new_stream_contents() << endl; + // … and wait for the thread. stream_thread.join(); } else