Guard against the remove message not working
This commit is contained in:
parent
2910e66150
commit
823cd95628
1 changed files with 8 additions and 1 deletions
|
@ -341,7 +341,14 @@
|
|||
start
|
||||
(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
|
||||
waiters
|
||||
(remove-at-index!
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue