mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-17 01:13:45 +00:00
Revert "p2p: add error check to SetWriteDeadline call in rlpx"
This reverts commit aaaf75d26e.
This commit is contained in:
parent
331e154f9a
commit
4c006eb373
1 changed files with 2 additions and 3 deletions
|
|
@ -108,9 +108,8 @@ func (t *rlpx) close(err error) {
|
||||||
// Tell the remote end why we're disconnecting if possible.
|
// Tell the remote end why we're disconnecting if possible.
|
||||||
if t.rw != nil {
|
if t.rw != nil {
|
||||||
if r, ok := err.(DiscReason); ok && r != DiscNetworkError {
|
if r, ok := err.(DiscReason); ok && r != DiscNetworkError {
|
||||||
if err = t.fd.SetWriteDeadline(time.Now().Add(discWriteTimeout)); err == nil {
|
t.fd.SetWriteDeadline(time.Now().Add(discWriteTimeout))
|
||||||
SendItems(t.rw, discMsg, r)
|
SendItems(t.rw, discMsg, r)
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
t.fd.Close()
|
t.fd.Close()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue