Monibuca / plugin-rtsp

rtsp协议实现,接受RTSP推流以及提供拉流转发功能
MIT License
147 stars 70 forks source link

client.go在连接还没建立的时候就return,然后调用dever函数导致程序报错 #12

Closed lhong1001 closed 2 years ago

lhong1001 commented 2 years ago

client.go 153 行 defer client.Client.Close()

如果在连接建立前就return的话,调用client.Client.Close()会报错,可以把client.Client.Close()往后移一下;

langhuihui commented 2 years ago

你可以直接提PR,这样就多一个贡献者啦

lhong1001 commented 2 years ago

没弄过,我试一下

在 2021-12-20 17:22:13,"dexter" @.***> 写道:

你可以直接提PR,这样就多一个贡献者啦

— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you authored the thread.Message ID: @.***>

lhong1001 commented 2 years ago

提交pr了

langhuihui commented 2 years ago

合并了