mirror of
https://github.com/Monibuca/plugin-webrtc.git
synced 2025-10-23 14:53:11 +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 {
|
||||
case PeerConnectionStateConnected:
|
||||
|
||||
case PeerConnectionStateDisconnected, PeerConnectionStateFailed:
|
||||
case PeerConnectionStateDisconnected, PeerConnectionStateFailed, PeerConnectionStateClosed:
|
||||
puber.Stop()
|
||||
}
|
||||
})
|
||||
|
Reference in New Issue
Block a user