fixed example 13

This commit is contained in:
tastytea 2018-05-17 19:09:36 +02:00
parent 364036712f
commit 6b47feb732
Signed by: tastytea
GPG Key ID: 59346E0EA35C67E5
1 changed files with 2 additions and 2 deletions

View File

@ -54,12 +54,12 @@ int main(int argc, char *argv[])
{
std::this_thread::sleep_for(std::chrono::seconds(1));
// Skip iteration if ptr points not to the Mastodon::API::http object
if (ptr != nullptr)
if (ptr == nullptr)
{
continue;
}
// Acquire lock to for the stream variable
// Acquire lock for the stream variable
std::lock_guard<std::mutex> lock(ptr->get_mutex());
// Parse event stream and clear it afterwards