aboutsummaryrefslogtreecommitdiffstats
path: root/p2p/server.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/server.go
parent8564eb9f7efcc7a0e639f6a45d7e67037fedac5f (diff)
downloaddexon-e34d1341022a51d8a86c4836c91e4e0ded888d27.tar
dexon-e34d1341022a51d8a86c4836c91e4e0ded888d27.tar.gz
dexon-e34d1341022a51d8a86c4836c91e4e0ded888d27.tar.bz2
dexon-e34d1341022a51d8a86c4836c91e4e0ded888d27.tar.lz
dexon-e34d1341022a51d8a86c4836c91e4e0ded888d27.tar.xz
dexon-e34d1341022a51d8a86c4836c91e4e0ded888d27.tar.zst
dexon-e34d1341022a51d8a86c4836c91e4e0ded888d27.zip
p2p: fixes for actual connections
The unit test hooks were turned on 'in production'.
Diffstat (limited to 'p2p/server.go')
-rw-r--r--p2p/server.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/p2p/server.go b/p2p/server.go
index 87be97a2f..c6d7fc2e8 100644
--- a/p2p/server.go
+++ b/p2p/server.go
@@ -408,7 +408,9 @@ func (srv *Server) startPeer(conn net.Conn, dest *discover.Node) {
return
}
- srv.newPeerHook(p)
+ if srv.newPeerHook != nil {
+ srv.newPeerHook(p)
+ }
p.run()
srv.removePeer(p)
}