fix: auto save block ask process

fix: mark all pending transfers canceled when app exit
This commit is contained in:
2026-02-05 15:48:59 +08:00
parent 99c71f5179
commit d9db99946d
5 changed files with 29 additions and 6 deletions

View File

@@ -40,6 +40,7 @@ func (s *Service) handleAsk(c *gin.Context) {
// 存储请求
task.Type = TransferTypeReceive
task.Status = TransferStatusPending
task.DecisionChan = make(chan Decision, 1)
s.StoreTransferToList(&task)
if s.config.GetAutoAccept() {