aboutsummaryrefslogtreecommitdiffstats
path: root/p2p/peer_error.go
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2015-02-07 07:13:22 +0800
committerFelix Lange <fjl@twurst.com>2015-02-07 07:43:52 +0800
commite34d1341022a51d8a86c4836c91e4e0ded888d27 (patch)
tree35dacd9390e6181803329f8c5c7d1cb076ba0128 /p2p/peer_error.go
parent8564eb9f7efcc7a0e639f6a45d7e67037fedac5f (diff)
downloadgo-tangerine-e34d1341022a51d8a86c4836c91e4e0ded888d27.tar.gz
go-tangerine-e34d1341022a51d8a86c4836c91e4e0ded888d27.tar.zst
go-tangerine-e34d1341022a51d8a86c4836c91e4e0ded888d27.zip
p2p: fixes for actual connections
The unit test hooks were turned on 'in production'.
Diffstat (limited to 'p2p/peer_error.go')
-rw-r--r--p2p/peer_error.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/p2p/peer_error.go b/p2p/peer_error.go
index 9133768f9..0ff4f4b43 100644
--- a/p2p/peer_error.go
+++ b/p2p/peer_error.go
@@ -123,7 +123,7 @@ func discReasonForError(err error) DiscReason {
return DiscProtocolError
case errPingTimeout:
return DiscReadTimeout
- case errRead, errWrite, errMisc:
+ case errRead, errWrite:
return DiscNetworkError
default:
return DiscSubprotocolError