Fix mjpeg client network connection

This commit is contained in:
Alexey Khit
2023-01-13 18:03:54 +03:00
parent 7b326d4753
commit 94f6c07b28
+2
View File
@@ -64,6 +64,8 @@ func (c *Client) Start() error {
} }
func (c *Client) Stop() error { func (c *Client) Stop() error {
// important for close reader/writer gorutines
_ = c.res.Body.Close()
c.closed = true c.closed = true
return nil return nil
} }