Skip to content

Commit

Permalink
swap the order
Browse files Browse the repository at this point in the history
I should prevent accessiability first, then delete the resource

Signed-off-by: Lîm Tsú-thuàn <[email protected]>
  • Loading branch information
dannypsnl committed Sep 14, 2024
1 parent b50bc3c commit fb2eaa9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions collect/record-maintainer.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@
(when (valid-path? path)
(define maintainer (get-record-maintainer path))
(when maintainer
(kill-thread maintainer)
(hash-set! path=>maintainer path #f))))
(hash-set! path=>maintainer path #f)
(kill-thread maintainer))))

;;; this thread do nothing and provide fake reply is need
; the purpose is making sure the caller will fail gratefully, but no need to handle exception
Expand Down

0 comments on commit fb2eaa9

Please sign in to comment.