Guard against the remove message not working

This commit is contained in:
Christopher Baines 2025-02-03 09:55:57 +01:00
parent 2910e66150
commit 823cd95628

View file

@ -341,7 +341,14 @@
start start
(cdr end)))) (cdr end))))
(loop (remove-at-index! resources index) (loop (if index
(remove-at-index! resources index)
(begin
(simple-format
(current-error-port)
"resource pool error: unable to remove ~A\n"
resource)
resources))
available ; resource shouldn't be in this list available ; resource shouldn't be in this list
waiters waiters
(remove-at-index! (remove-at-index!