From 0acdeca3d6df4716d8789444c7bb645c73a27324 Mon Sep 17 00:00:00 2001 From: obscuren Date: Fri, 26 Sep 2014 20:19:01 +0200 Subject: [PATCH] skip messages properly --- peer.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/peer.go b/peer.go index f1fff59af7..00f0a145cd 100644 --- a/peer.go +++ b/peer.go @@ -314,14 +314,14 @@ func (p *Peer) HandleOutbound() { out: for { + skip: select { // Main message queue. All outbound messages are processed through here case msg := <-p.outputQueue: if !p.statusKnown { switch msg.Type { - case ethwire.MsgGetTxsTy, ethwire.MsgGetBlockHashesTy, ethwire.MsgGetBlocksTy, ethwire.MsgBlockHashesTy, ethwire.MsgBlockTy: - peerlogger.Debugln("Blocked outgoing [eth] message to peer without the [eth] cap.") - break + case ethwire.MsgStatusTy, ethwire.MsgGetTxsTy, ethwire.MsgTxTy, ethwire.MsgGetBlockHashesTy, ethwire.MsgBlockHashesTy, ethwire.MsgGetBlocksTy, ethwire.MsgBlockTy: + break skip } }