summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick White <git@njw.name>2020-06-02 15:28:12 +0100
committerNick White <git@njw.name>2020-06-02 15:28:12 +0100
commitdab03345abce18b4cfde479f2be67a07d05b77e9 (patch)
tree058fab921a700376e298f3291dd773b198693370
parent1bc2246a06caa0a9e2601a9eada89363988efad8 (diff)
Fix bug with local queue deletion
-rw-r--r--local.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/local.go b/local.go
index 70991b2..26c2ba8 100644
--- a/local.go
+++ b/local.go
@@ -180,7 +180,7 @@ func (a *LocalConn) DelFromQueue(url string, handle string) error {
i := strings.Index(s, handle)
// store the joining of part before and part after handle
- complete := s[0:i] + s[i + len(handle) + 1:len(s)]
+ complete := s[0:i] + s[i + len(handle) + 2:len(s)]
f, err := os.Create(filepath.Join(a.TempDir, url))
if err != nil {