mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
When a route connection is created, the server will keep track of the client structure in a special map until the route protocol completes. This is meant so that if the server is shutdown before the route is registered in routes map, the server can kick out the connection's readLoop. The route connection was correctly removed on success, but was not for route connections that were not registered and dropped. This was not causing any issue, but for correctness, doing the removal now when server removes a route connection. Signed-off-by: Ivan Kozlovic <ivan@synadia.com>