Exemple #1
0
 protected override void ServiceStop()
 {
     // Stop the plan follower
     if (scheduledExecutorService != null && !scheduledExecutorService.IsShutdown())
     {
         scheduledExecutorService.Shutdown();
     }
     // Clear the plans
     plans.Clear();
 }
 public override void Destroy()
 {
     lock (this)
     {
         if (!isDestroyed)
         {
             isDestroyed = true;
             if (scheduler != null)
             {
                 scheduler.Shutdown();
             }
             schedulerRunning = false;
             base.Destroy();
         }
     }
 }