Skip to content

Commit

Permalink
Fix drift in comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Anuraag Agrawal committed Aug 30, 2021
1 parent 1249d9f commit 5b973dd
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,9 @@ public void jobToBeExecuted(JobExecutionContext job) {
job.put(Context.class, context);

// Listeners are executed synchronously on the same thread starting here.
// https://github.com/quartz-scheduler/quartz/blob/d42fb7770f287afbf91f6629d90e7698761ad7d8/quartz-core/src/main/java/org/quartz/core/JobRunShell.java#L173
// https://github.com/quartz-scheduler/quartz/blob/quartz-2.0.x/quartz/src/main/java/org/quartz/core/JobRunShell.java#L180
// However, if a listener before this one throws an exception in wasExecuted, we won't be
// executed. Library instrumentation users need to make sure we're registered first to prevent
// scope leaks.
// executed.
Scope scope = context.makeCurrent();
job.put(Scope.class, scope);
}
Expand Down

0 comments on commit 5b973dd

Please sign in to comment.