From 056873ec924b43c55dba2189dad47983f8aed30d Mon Sep 17 00:00:00 2001 From: leaf corcoran Date: Wed, 22 Nov 2023 02:26:57 -0800 Subject: [PATCH] release correct lock --- zipserver/copy_handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zipserver/copy_handler.go b/zipserver/copy_handler.go index 1296569..7fcda0f 100644 --- a/zipserver/copy_handler.go +++ b/zipserver/copy_handler.go @@ -66,7 +66,7 @@ func copyHandler(w http.ResponseWriter, r *http.Request) error { } go (func() { - defer extractLockTable.releaseKey(key) + defer copyLockTable.releaseKey(key) jobCtx, cancel := context.WithTimeout(context.Background(), time.Duration(config.JobTimeout)) defer cancel()