mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-13 07:29:30 +01:00
don't shadow the second error
This commit is contained in:
parent
fce54343ea
commit
a16cc84e41
@ -40,7 +40,8 @@ func (this WSContainer) Write(msg []byte) (int, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (this WSContainer) SetDeadline(t time.Time) error {
|
func (this WSContainer) SetDeadline(t time.Time) error {
|
||||||
err := this.SetWriteDeadline(t)
|
if err := this.SetWriteDeadline(t); err != nil {
|
||||||
err = this.SetReadDeadline(t)
|
return err
|
||||||
return err
|
}
|
||||||
|
return this.SetReadDeadline(t)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user