File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -2123,7 +2123,6 @@ func (pc *PeerConnection) close(shouldGracefullyClose bool) error {
2123
2123
}
2124
2124
if shouldGracefullyClose && ! alreadyGracefullyClosed {
2125
2125
defer close (pc .isGracefulClosedDone )
2126
- pc .ops .GracefulClose ()
2127
2126
}
2128
2127
2129
2128
// https://www.w3.org/TR/webrtc/#dom-rtcpeerconnection-close (step #3)
@@ -2180,6 +2179,8 @@ func (pc *PeerConnection) close(shouldGracefullyClose bool) error {
2180
2179
pc .updateConnectionState (pc .ICEConnectionState (), pc .dtlsTransport .State ())
2181
2180
2182
2181
if shouldGracefullyClose {
2182
+ pc .ops .GracefulClose ()
2183
+
2183
2184
// note that it isn't canon to stop gracefully
2184
2185
pc .sctpTransport .lock .Lock ()
2185
2186
for _ , d := range pc .sctpTransport .dataChannels {
You can’t perform that action at this time.
0 commit comments