diff options
author | Jamie Liu <jamieliu@google.com> | 2019-09-03 15:09:34 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2019-09-03 15:10:51 -0700 |
commit | eb94066ef26fc95d6b645124642b4f1248ad5e11 (patch) | |
tree | 049b9d0fad990294dafc7db723e577d809aa7299 /pkg/flipcall/flipcall_example_test.go | |
parent | 648170f527c4dc57f6dcf35bdb13e31b99ca022c (diff) |
Ensure that flipcall.Endpoint.Shutdown() shuts down inactive peers.
PiperOrigin-RevId: 267022978
Diffstat (limited to 'pkg/flipcall/flipcall_example_test.go')
-rw-r--r-- | pkg/flipcall/flipcall_example_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/flipcall/flipcall_example_test.go b/pkg/flipcall/flipcall_example_test.go index edb6a8bef..8d88b845d 100644 --- a/pkg/flipcall/flipcall_example_test.go +++ b/pkg/flipcall/flipcall_example_test.go @@ -38,12 +38,12 @@ func Example() { panic(err) } var clientEP Endpoint - if err := clientEP.Init(pwd); err != nil { + if err := clientEP.Init(ClientSide, pwd); err != nil { panic(err) } defer clientEP.Destroy() var serverEP Endpoint - if err := serverEP.Init(pwd); err != nil { + if err := serverEP.Init(ServerSide, pwd); err != nil { panic(err) } defer serverEP.Destroy() |