From 455241debb6fa11053bd3a5429cdd9890bb607dc Mon Sep 17 00:00:00 2001 From: obscuren Date: Mon, 15 Dec 2014 17:09:06 +0100 Subject: [PATCH] Removed goroutine from "Run" --- eth/protocol.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/eth/protocol.go b/eth/protocol.go index 8cbf6d309..3b6f95d44 100644 --- a/eth/protocol.go +++ b/eth/protocol.go @@ -2,6 +2,7 @@ package eth import ( "bytes" + "fmt" "math" "math/big" @@ -98,15 +99,14 @@ func runEthProtocol(txPool txPool, chainManager chainManager, blockPool blockPoo } err = self.handleStatus() if err == nil { - go func() { - for { - err = self.handle() - if err != nil { - self.blockPool.RemovePeer(self.id) - break - } + for { + err = self.handle() + if err != nil { + fmt.Println(err) + self.blockPool.RemovePeer(self.id) + break } - }() + } } return }