summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortastytea2020-01-09 19:05:37 +0100
committertastytea2020-01-09 19:05:37 +0100
commit9bc1be8481473dcad18c2c420d3f388a8cb80c78 (patch)
tree001d2043e61d9943a67e49e5adaec05628500e46
parentf1cc8cfb2dea9e05f83a1f2856b27e926189a859 (diff)
downloadmastodonpp-9bc1be8481473dcad18c2c420d3f388a8cb80c78.tar
mastodonpp-9bc1be8481473dcad18c2c420d3f388a8cb80c78.tar.gz
mastodonpp-9bc1be8481473dcad18c2c420d3f388a8cb80c78.zip
Shorten streaming example.
-rw-r--r--examples/example02_streaming.cpp3
1 files changed, 1 insertions, 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