revdotcom / revai-go

Rev.ai golang client
https://www.rev.ai/docs
MIT License
21 stars 12 forks source link

Bug/double close #17

Closed jdupl123 closed 3 years ago

jdupl123 commented 3 years ago

fix https://github.com/threeaccents/revai-go/issues/11

When we only have one sender we should let the sender close the channel when it is done. As explained in https://go101.org/article/channel-closing.html

Closing the socket will finish trigger the read loop to finish.

Creating as a draft as I haven't tested this fix.

threeaccents commented 3 years ago

@jdupl123 I made you a collaborator on the project https://github.com/threeaccents/revai-go/invitations

jdupl123 commented 3 years ago

Thanks @threeaccents