Merge pull request #963 from nats-io/start_go_routine_lead_node

Fixed invocations of startGoRoutine (continued)
This commit is contained in:
Ivan Kozlovic
2019-04-18 11:23:31 -06:00
committed by GitHub

View File

@@ -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()