Skip to content
This repository has been archived by the owner on Jan 5, 2023. It is now read-only.

Commit

Permalink
no error if trying to return with full pool: this can happen if we ex…
Browse files Browse the repository at this point in the history
…it session in the middle of a call.
  • Loading branch information
estebanlm committed Nov 6, 2019
1 parent 6d13db7 commit 5f7bf64
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ThreadedFFI/TFPool.class.st
Expand Up @@ -86,7 +86,9 @@ TFPool >> returnOne: anObject [
| index |
index := pointer - 1.
index > 0 ifFalse: [
^ self error: 'Returning an object but pool is full' ].
"This can happen if a new session starts in middle of a call."
'Returning an object but pool is full' crTrace.
^ self ].
elements at: index put: anObject.
pointer := index ]
]
Expand Down

0 comments on commit 5f7bf64

Please sign in to comment.