]> Sergey Matveev's repositories - btrtrc.git/commitdiff
doc comment
authorMatt Joiner <anacrolix@gmail.com>
Mon, 4 May 2020 23:00:43 +0000 (09:00 +1000)
committerMatt Joiner <anacrolix@gmail.com>
Mon, 4 May 2020 23:00:43 +0000 (09:00 +1000)
webtorrent/transport.go

index 055b22b898de1703ed5c01253608b066d3bb2ddf..b1579dce3ad642cdfad10433296f7368fb2ef694 100644 (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 {
        return struct {
                datachannelReadWriter