diff options
author | obscuren <geffobscura@gmail.com> | 2015-02-13 22:06:32 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-02-13 22:06:32 +0800 |
commit | 75d164037fb9bbf75def7c5501727fd634ef124f (patch) | |
tree | e5be5bd595139ff7dfbe6261e1e659d8e7dd6f9c /p2p/server.go | |
parent | 38faf2c51a1e4a86cda5dfa1b4f7fdae4fd7f58d (diff) | |
parent | a5ea21cd85530eee6eb1bb83c37c20d009f11f74 (diff) | |
download | dexon-75d164037fb9bbf75def7c5501727fd634ef124f.tar dexon-75d164037fb9bbf75def7c5501727fd634ef124f.tar.gz dexon-75d164037fb9bbf75def7c5501727fd634ef124f.tar.bz2 dexon-75d164037fb9bbf75def7c5501727fd634ef124f.tar.lz dexon-75d164037fb9bbf75def7c5501727fd634ef124f.tar.xz dexon-75d164037fb9bbf75def7c5501727fd634ef124f.tar.zst dexon-75d164037fb9bbf75def7c5501727fd634ef124f.zip |
Merge branch 'logjson' into develop
Diffstat (limited to 'p2p/server.go')
-rw-r--r-- | p2p/server.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/p2p/server.go b/p2p/server.go index 4fd1f7d03..e0d9f18a5 100644 --- a/p2p/server.go +++ b/p2p/server.go @@ -375,7 +375,10 @@ func (srv *Server) addPeer(conn net.Conn, desc *peerAddr, slot int) *Peer { peer.slot = slot srv.peers[slot] = peer srv.peerCount++ - go func() { peer.loop(); srv.peerDisconnect <- peer }() + go func() { + peer.loop() + srv.peerDisconnect <- peer + }() return peer } |