cziegeler commented on code in PR #6:
URL:
https://github.com/apache/sling-org-apache-sling-commons-scheduler/pull/6#discussion_r1868635537
##########
src/main/java/org/apache/sling/commons/scheduler/impl/QuartzThreadPool.java:
##########
@@ -67,8 +72,23 @@ public void setInstanceName(final String name) {
*/
@Override
public boolean runInThread(final Runnable job) {
- this.executor.execute(job);
-
+ synchronized ( this.lock ) {
+ if ( this.counter == 0 ) {
Review Comment:
I am not a fan as this is then hiding a bug in the logic and eventually it
will cause trouble. Its probably only delaying it
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]