Skip to content

Commit

Permalink
I shouldn't have deleted this
Browse files Browse the repository at this point in the history
Keysets are backed by the actual map, so changes to it could mess
with the caller's iteration.
  • Loading branch information
jcrossley3 committed Mar 10, 2015
1 parent af973d9 commit af7549f
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -145,7 +145,7 @@ public synchronized boolean unschedule(String name) throws SchedulerException {

@Override
public Set<String> scheduledJobs() {
return Collections.unmodifiableSet(this.currentJobs.getNames());
return Collections.unmodifiableSet(new HashSet<String>(this.currentJobs.getNames()));
}

public synchronized JobKey lookupJob(String name) {
Expand Down

0 comments on commit af7549f

Please sign in to comment.