Skip to content

Commit

Permalink
Fix DirectSchedulerFactory not setting state to initialized at some c…
Browse files Browse the repository at this point in the history
…ases
  • Loading branch information
lahma committed Apr 26, 2011
1 parent bd29a2f commit bd98c39
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Quartz/Impl/DirectSchedulerFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ public virtual void CreateVolatileScheduler(int maxThreads)
public virtual void CreateRemoteScheduler(string proxyAddress)
{
CreateRemoteScheduler(DefaultSchedulerName, DefaultInstanceId, proxyAddress);
initialized = true;
}

/// <summary>
Expand All @@ -156,6 +155,7 @@ protected internal virtual void CreateRemoteScheduler(string schedulerName, stri

SchedulerRepository schedRep = SchedulerRepository.Instance;
schedRep.Bind(remoteScheduler);
initialized = true;
}

/// <summary>
Expand Down Expand Up @@ -287,6 +287,8 @@ public virtual void CreateScheduler(string schedulerName, string schedulerInstan
// garbage collected

schedRep.Bind(scheduler);

initialized = true;
}

/// <summary>
Expand Down

0 comments on commit bd98c39

Please sign in to comment.