commit | 99d8a2eb8d93aff74ef9c348686d8cdfaab43ed6 | [log] [tgz] |
---|---|---|
author | Matt Rosencrantz <mattr@google.com> | Thu Aug 13 07:53:08 2015 -0700 |
committer | Matt Rosencrantz <mattr@google.com> | Thu Aug 13 07:53:08 2015 -0700 |
tree | 442e037f916d76f1f77d6c981fb19036f4f9a907 | |
parent | f18888c00c7858d1ee8bca11aa69d4a79a74b156 [diff] |
ref/runtime/internal/stream/manager: Prevent lingering goroutine. An accept loop was lingering after runtime shutdown causing initializatin panics. Change-Id: I0b9412d9650051a670c8fdd46763e0dc26acf123
diff --git a/runtime/internal/rpc/stream/manager/error_test.go b/runtime/internal/rpc/stream/manager/error_test.go index fe6f76d..1b72577 100644 --- a/runtime/internal/rpc/stream/manager/error_test.go +++ b/runtime/internal/rpc/stream/manager/error_test.go
@@ -131,6 +131,7 @@ if err != nil { t.Fatal(err) } + defer ln.Close() // Server will just listen for flows and close them. go acceptLoop(ln)