Haivision / srtgo

Go bindings for SRT. Advantages of SRT technology for an easy to use programming language
Mozilla Public License 2.0
185 stars 52 forks source link

Fix deadline error #58

Open xiaozhihong opened 1 year ago

xiaozhihong commented 1 year ago

The code time.NewTimer(0) will send the current time to the channel of the timer directly. And it case function poll.wait return a timeout error. On the other side, we must check the error of the return value of function poll.wait in read/write.