mirror of
https://github.com/elobuff/gortmp
synced 2025-12-24 13:08:13 +08:00
Include error in read warning
This commit is contained in:
@@ -11,7 +11,7 @@ func (c *Client) receiveLoop() {
|
||||
h, err := ReadHeader(c)
|
||||
if err != nil {
|
||||
if c.IsAlive() {
|
||||
log.Warn("unable to receive next header while connected")
|
||||
log.Warn("unable to receive next header while connected: %s", err)
|
||||
c.Reset()
|
||||
} else {
|
||||
log.Debug("client receive: connection closed")
|
||||
|
||||
Reference in New Issue
Block a user