public override void OnDestroy()
 {
     this.CancelInvoke("CheckVessels");
     if (this.socketWorker != null)
     {
         this.socketWorker.Stop();
         this.socketWorker = null;
     }
 }
        public override void OnDestroy()
        {
            this.CancelInvoke("CheckVessels");

            if (this.socketWorker != null)
            {
                this.socketWorker.Stop();
                this.socketWorker = null;
            }

            // Remove control locks
            InputLockManager.RemoveControlLock(CONTROL_LOCK);
        }
 public Flight()
 {
     this.LogPrefix     = "samv client";
     this.socketWorker  = new SocketWorker();
     this.VesselChecker = new VesselChecker(this);
 }
 public TrackingStation()
 {
     this.LogPrefix     = "samv client";
     this.socketWorker  = new SocketWorker();
     this.VesselChecker = new VesselChecker(this);
 }