mirror of
https://github.com/aler9/gortsplib
synced 2025-09-27 11:32:08 +08:00
server: remove dashes from session ID (#278)
This commit is contained in:
@@ -9,8 +9,6 @@ import (
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/google/uuid"
|
||||
|
||||
"github.com/bluenviron/gortsplib/v3/pkg/base"
|
||||
"github.com/bluenviron/gortsplib/v3/pkg/liberrors"
|
||||
)
|
||||
@@ -410,9 +408,8 @@ func (s *Server) run() {
|
||||
continue
|
||||
}
|
||||
|
||||
secretID := uuid.New().String()
|
||||
ss := newServerSession(s, secretID, req.sc)
|
||||
s.sessions[secretID] = ss
|
||||
ss := newServerSession(s, req.sc)
|
||||
s.sessions[ss.secretID] = ss
|
||||
|
||||
select {
|
||||
case ss.request <- req:
|
||||
|
Reference in New Issue
Block a user