diff --git a/internal/servers/webrtc/server_test.go b/internal/servers/webrtc/server_test.go index e21b04f0388..12f02d67229 100644 --- a/internal/servers/webrtc/server_test.go +++ b/internal/servers/webrtc/server_test.go @@ -90,7 +90,7 @@ func (pm *dummyPathManager) AddPublisher(_ defs.PathAddPublisherReq) (defs.Path, func (pm *dummyPathManager) AddReader(req defs.PathAddReaderReq) (defs.Path, *stream.Stream, error) { if req.AccessRequest.Name == "nonexisting" { - return nil, nil, &defs.PathNoOnePublishingError{} + return nil, nil, defs.PathNoOnePublishingError{} } return pm.path, pm.path.stream, nil } diff --git a/internal/servers/webrtc/session.go b/internal/servers/webrtc/session.go index cf6cc42ee64..ef549ef9882 100644 --- a/internal/servers/webrtc/session.go +++ b/internal/servers/webrtc/session.go @@ -518,7 +518,7 @@ func (s *session) runRead() (int, error) { return http.StatusUnauthorized, err } - var terr2 *defs.PathNoOnePublishingError + var terr2 defs.PathNoOnePublishingError if errors.As(err, &terr2) { return http.StatusNotFound, err }