From a0914a38d07a36ef997b7bca3cdb58ba91e0795a Mon Sep 17 00:00:00 2001
From: Daniel Czerwonk <daniel@dan-nrw.de>
Date: Mon, 16 Jul 2018 21:56:33 +0200
Subject: [PATCH] tcpConnector does not return error any more, was not checked
 any way

---
 protocols/bgp/server/fsm.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/protocols/bgp/server/fsm.go b/protocols/bgp/server/fsm.go
index c8d98157..1e614ab1 100644
--- a/protocols/bgp/server/fsm.go
+++ b/protocols/bgp/server/fsm.go
@@ -186,7 +186,7 @@ func (fsm *FSM) cease() {
 	fsm.eventCh <- Cease
 }
 
-func (fsm *FSM) tcpConnector(ctx context.Context) error {
+func (fsm *FSM) tcpConnector(ctx context.Context) {
 	for {
 		select {
 		case <-fsm.initiateCon:
@@ -207,7 +207,7 @@ func (fsm *FSM) tcpConnector(ctx context.Context) error {
 				c.Close()
 				continue
 			case <-ctx.Done():
-				return nil
+				return
 			}
 		}
 	}
-- 
GitLab