Skip to content

Commit

Permalink
fix: failed consumers not being removed
Browse files Browse the repository at this point in the history
  • Loading branch information
niklaspandersson authored and Julusian committed Oct 30, 2023
1 parent d614e3f commit 0d8af51
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/consumer/output.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,11 @@ struct output::impl
++it;
} catch (...) {
CASPAR_LOG_CURRENT_EXCEPTION();
auto index = it->first;
it = consumers.erase(it);

std::lock_guard<std::mutex> lock(consumers_mutex_);
consumers_.erase(it->first);
consumers_.erase(index);
}
}

Expand Down

0 comments on commit 0d8af51

Please sign in to comment.