mirror of
https://github.com/aler9/gortsplib
synced 2025-10-09 00:50:24 +08:00
make WritePacket*() return errors when write queue is full (#388)
This commit is contained in:
@@ -256,3 +256,11 @@ type ErrClientUnhandledMethod struct {
|
||||
func (e ErrClientUnhandledMethod) Error() string {
|
||||
return fmt.Sprintf("unhandled method: %v", e.Method)
|
||||
}
|
||||
|
||||
// ErrClientWriteQueueFull is an error that can be returned by a client.
|
||||
type ErrClientWriteQueueFull struct{}
|
||||
|
||||
// Error implements the error interface.
|
||||
func (e ErrClientWriteQueueFull) Error() string {
|
||||
return "write queue is full"
|
||||
}
|
||||
|
Reference in New Issue
Block a user