This commit is contained in:
aler9
2020-11-16 09:07:59 +01:00
parent c24d3f677b
commit cf6f734972

View File

@@ -90,9 +90,7 @@ type ConnClient struct {
// Close closes all the ConnClient resources.
func (c *ConnClient) Close() error {
s := c.state
if s == connClientStatePlay || s == connClientStateRecord {
if c.state == connClientStatePlay || c.state == connClientStateRecord {
close(c.backgroundTerminate)
<-c.backgroundDone