[NOD-1586] Return routes.Disconnect (#1180)

This commit is contained in:
Ori Newman 2020-12-06 00:54:34 -08:00 committed by GitHub
parent 32a04d1811
commit 05979de705
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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