mirror of
https://github.com/vxcontrol/pentagi.git
synced 2026-10-02 01:44:31 +08:00
fix(controller): remove close(aw.input) to prevent nil channel deadlock on assistant finish
This commit is contained in:
@@ -565,7 +565,6 @@ func (aw *assistantWorker) Finish(ctx context.Context) error {
|
||||
}
|
||||
|
||||
aw.cancel()
|
||||
close(aw.input)
|
||||
aw.wg.Wait()
|
||||
|
||||
if err := aw.SetStatus(ctx, database.AssistantStatusFinished); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user