From 05979de705def3c0030bc6d4f5ca1ff2fadbcdc5 Mon Sep 17 00:00:00 2001 From: Ori Newman Date: Sun, 6 Dec 2020 00:54:34 -0800 Subject: [PATCH] [NOD-1586] Return routes.Disconnect (#1180) --- infrastructure/network/netadapter/standalone/routes.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/infrastructure/network/netadapter/standalone/routes.go b/infrastructure/network/netadapter/standalone/routes.go index fe277d2f8..0f1dc830a 100644 --- a/infrastructure/network/netadapter/standalone/routes.go +++ b/infrastructure/network/netadapter/standalone/routes.go @@ -62,3 +62,8 @@ func (r *Routes) WaitForDisconnect(timeout time.Duration) error { } } } + +// Disconnect closes the connection behind the routes, thus closing all routes +func (r *Routes) Disconnect() { + r.netConnection.Disconnect() +}