Skip to content

Commit

Permalink
Merge pull request #569 from replayio/seisenhandler/drop_peer
Browse files Browse the repository at this point in the history
RUN-1766: Add assert for NodeChannel reference count decrements
  • Loading branch information
sgeisenh committed Apr 18, 2023
2 parents 2372eec + 3a01f1d commit fdf037a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mojo/core/node_channel.cc
Original file line number Diff line number Diff line change
Expand Up @@ -873,6 +873,11 @@ void NodeChannel::OfferChannelUpgrade() {
#endif
}

void NodeChannel::Release() {
recordreplay::Assert("[RUN-1050-1766] NodeChannel::Release");
base::RefCountedDeleteOnSequence<NodeChannel>::Release();
}

uint64_t NodeChannel::RemoteCapabilities() const {
return remote_capabilities_;
}
Expand Down
2 changes: 2 additions & 0 deletions mojo/core/node_channel.h
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,8 @@ class MOJO_SYSTEM_IMPL_EXPORT NodeChannel

void OfferChannelUpgrade();

void Release();

private:
friend class base::RefCountedDeleteOnSequence<NodeChannel>;
friend class base::DeleteHelper<NodeChannel>;
Expand Down

0 comments on commit fdf037a

Please sign in to comment.