Improve panic recovery to use participant logger. (#1375)

Also made IssueFullReconnect public
This commit is contained in:
David Zhao
2023-02-02 14:55:50 -08:00
committed by GitHub
parent 501fb0860e
commit be4764b93b
6 changed files with 58 additions and 21 deletions
+1 -1
View File
@@ -261,7 +261,7 @@ func (s *RTCService) ServeHTTP(w http.ResponseWriter, r *http.Request) {
// we would terminate the signal connection as well
_ = conn.Close()
}()
defer rtc.Recover()
defer rtc.Recover(pLogger)
for {
select {
case <-done: