From ac49f715c4176b7d69de144c2b54bf3280218b77 Mon Sep 17 00:00:00 2001 From: Ivan Kozlovic Date: Thu, 18 Apr 2019 10:31:23 -0600 Subject: [PATCH] Fixed invocations of startGoRoutine (continued) The leafnode start of go routines for readloop and writeloop were missing from PR #961 Signed-off-by: Ivan Kozlovic --- server/leafnode.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/leafnode.go b/server/leafnode.go index b4c9036c..bdf01dae 100644 --- a/server/leafnode.go +++ b/server/leafnode.go @@ -583,10 +583,10 @@ func (s *Server) createLeafNode(conn net.Conn, remote *leafNodeCfg) *client { } // Spin up the read loop. - s.startGoRoutine(c.readLoop) + s.startGoRoutine(func() { c.readLoop() }) // Spin up the write loop. - s.startGoRoutine(c.writeLoop) + s.startGoRoutine(func() { c.writeLoop() }) // Set the Ping timer c.setPingTimer()