mirror of
https://github.com/Monibuca/plugin-webrtc.git
synced 2025-10-24 23:51:08 +08:00
fix: publisher add PeerConnectionStateClosed handler
This commit is contained in:
2
main.go
2
main.go
@@ -253,7 +253,7 @@ func (conf *WebRTCConfig) Push_(w http.ResponseWriter, r *http.Request) {
|
|||||||
switch state {
|
switch state {
|
||||||
case PeerConnectionStateConnected:
|
case PeerConnectionStateConnected:
|
||||||
|
|
||||||
case PeerConnectionStateDisconnected, PeerConnectionStateFailed:
|
case PeerConnectionStateDisconnected, PeerConnectionStateFailed, PeerConnectionStateClosed:
|
||||||
puber.Stop()
|
puber.Stop()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user