use context to detect when channel is properly closed

This commit is contained in:
David Zhao
2020-12-16 00:13:43 -08:00
parent ac83bf4c78
commit 2665026830
3 changed files with 6 additions and 4 deletions
-1
View File
@@ -99,7 +99,6 @@ func (w *TrackWriter) writeOgg() {
return
}
// Convert seconds to Milliseconds, Sleep doesn't accept floats
time.Sleep(sampleDuration)
}
}