mirror of
https://github.com/strukturag/nextcloud-spreed-signaling
synced 2024-05-03 22:33:10 +02:00
Handle error responses when creating proxy publisher / subscriber.
This commit is contained in:
parent
960cb0ea3c
commit
9a868c6d91
|
@ -1042,6 +1042,8 @@ func (c *mcuProxyConnection) newPublisher(ctx context.Context, listener McuListe
|
|||
if err != nil {
|
||||
// TODO: Cancel request
|
||||
return nil, err
|
||||
} else if response.Type == "error" {
|
||||
return nil, fmt.Errorf("Error creating %s publisher for %s on %s: %+v", streamType, id, c, response.Error)
|
||||
}
|
||||
|
||||
proxyId := response.Command.Id
|
||||
|
@ -1070,6 +1072,8 @@ func (c *mcuProxyConnection) newSubscriber(ctx context.Context, listener McuList
|
|||
if err != nil {
|
||||
// TODO: Cancel request
|
||||
return nil, err
|
||||
} else if response.Type == "error" {
|
||||
return nil, fmt.Errorf("Error creating %s subscriber for %s on %s: %+v", streamType, publisherSessionId, c, response.Error)
|
||||
}
|
||||
|
||||
proxyId := response.Command.Id
|
||||
|
|
Loading…
Reference in a new issue