From 9a4419e36a87fb14635dfb0f900a5397251fe2aa Mon Sep 17 00:00:00 2001 From: Yami Odymel Date: Wed, 25 Jun 2025 05:19:41 +0800 Subject: [PATCH] Fixed Resume didnt save is_pause: false in config --- channel/channel.go | 2 +- manager/manager.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/channel/channel.go b/channel/channel.go index 6f09f3d..79d49a7 100644 --- a/channel/channel.go +++ b/channel/channel.go @@ -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() } diff --git a/manager/manager.go b/manager/manager.go index bb9659d..17808bb 100644 --- a/manager/manager.go +++ b/manager/manager.go @@ -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)