Skip to content

Commit

Permalink
Update logworker.hpp (KjellKod#369)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kjell Hedström : Available for new Engineering Leadership and Engineering Opportunities authored Jun 29, 2020
1 parent a5f0158 commit cdceb28
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/g3log/logworker.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ namespace g3 {
// sink_handle->sink().use_count() is 1 at this point
// i.e. this would be safe as long as no other weak_ptr to shared_ptr conversion
// was made by the client: assert(sink_handle->sink().use_count() == 0);
assert(sink_handle->sink().use_count() == 1);
auto weak_ptr_sink = sink_handle->sink(); {
auto bg_removesink_call = [this, weak_ptr_sink] {
auto shared_sink = weak_ptr_sink.lock();
Expand Down

0 comments on commit cdceb28

Please sign in to comment.