Skip to content

Commit 75b6cdc

Browse files
committed
increase buffer between soft and hard delete
1 parent fc37ad9 commit 75b6cdc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/downloader/slskd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ func (c Slskd) deleteDownload(user, ID string) error {
470470
if _, err := c.HttpClient.MakeRequest("DELETE", c.Cfg.URL+reqParams+"?remove=false", nil, c.Headers); err != nil {
471471
return fmt.Errorf("soft delete failed: %s", err.Error())
472472
}
473-
time.Sleep(500) // Small buffer between soft and hard delete
473+
time.Sleep(1 * time.Second) // Small buffer between soft and hard delete
474474
// delete download
475475
if _, err := c.HttpClient.MakeRequest("DELETE", c.Cfg.URL+reqParams+"?remove=true", nil, c.Headers); err != nil {
476476
return fmt.Errorf("hard delete failed: %s", err.Error())

0 commit comments

Comments
 (0)