doc comment

This commit is contained in:
Matt Joiner 2020-05-05 09:00:43 +10:00
parent 4eee1ba261
commit cc5d2abe18
1 changed files with 2 additions and 0 deletions

View File

@ -148,6 +148,8 @@ func setDataChannelOnOpen(
}) })
} }
// Hooks the datachannel's Close to Close the owning PeerConnection. The datachannel takes ownership
// and responsibility for the PeerConnection.
func hookDataChannelCloser(dcrwc datachannel.ReadWriteCloser, pc *wrappedPeerConnection) datachannel.ReadWriteCloser { func hookDataChannelCloser(dcrwc datachannel.ReadWriteCloser, pc *wrappedPeerConnection) datachannel.ReadWriteCloser {
return struct { return struct {
datachannelReadWriter datachannelReadWriter