We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d0391f9 + a49914b commit dc50480Copy full SHA for dc50480
peerconnection.go
@@ -2099,7 +2099,6 @@ func (pc *PeerConnection) close(shouldGracefullyClose bool) error {
2099
}
2100
if shouldGracefullyClose && !alreadyGracefullyClosed {
2101
defer close(pc.isGracefulClosedDone)
2102
- pc.ops.GracefulClose()
2103
2104
2105
// https://www.w3.org/TR/webrtc/#dom-rtcpeerconnection-close (step #3)
@@ -2156,6 +2155,8 @@ func (pc *PeerConnection) close(shouldGracefullyClose bool) error {
2156
2155
pc.updateConnectionState(pc.ICEConnectionState(), pc.dtlsTransport.State())
2157
2158
if shouldGracefullyClose {
+ pc.ops.GracefulClose()
2159
+
2160
// note that it isn't canon to stop gracefully
2161
pc.sctpTransport.lock.Lock()
2162
for _, d := range pc.sctpTransport.dataChannels {
0 commit comments