Fixed Resume didnt save is_pause: false in config

This commit is contained in:
Yami Odymel
2025-06-25 05:19:41 +08:00
parent 9999afa9ed
commit 9a4419e36a
2 changed files with 2 additions and 2 deletions

View File

@@ -141,5 +141,5 @@ func (ch *Channel) Resume(startSeq int) {
ch.Info("channel resumed")
<-time.After(time.Duration(startSeq) * time.Second)
ch.Monitor()
go ch.Monitor()
}

View File

@@ -143,7 +143,7 @@ func (m *Manager) ResumeChannel(username string) error {
if !ok {
return nil
}
go thing.(*channel.Channel).Resume(0)
thing.(*channel.Channel).Resume(0)
if err := m.SaveConfig(); err != nil {
return fmt.Errorf("save config: %w", err)