Skip to content

Commit

Permalink
Close stream in ExampleClient
Browse files Browse the repository at this point in the history
closes #260
  • Loading branch information
corny committed Sep 16, 2023
1 parent 87fd485 commit cf125f7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ func ExampleClient() {
if err != nil {
panic(err)
}
defer stream.Close()

file, err := os.Create("video.mp4")
if err != nil {
Expand Down

0 comments on commit cf125f7

Please sign in to comment.