🐛 FIX: 自动录制没有进入当前录制列表中

This commit is contained in:
dexter
2022-10-11 19:15:02 +08:00
parent 55c1611d83
commit 2594e446df
7 changed files with 48 additions and 32 deletions

View File

@@ -15,7 +15,8 @@ type Recorder struct {
append bool // 是否追加模式
}
func (r *Recorder) Start() {
func (r *Recorder) start() {
recordConfig.recordings.Store(r.ID, r)
r.PlayRaw()
recordConfig.recordings.Delete(r.ID)
r.Close()