Ignore:
Timestamp:
Aug 17, 2012, 9:53:11 AM (12 years ago)
Author:
chronos
Message:
  • Fixed: Use parent TCommNode Active property instead custom in PinConnection package.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • PinConnection/UCommDelay.pas

    r413 r414  
    3535  TCommDelay = class(TCommNode)
    3636  private
    37     FActive: Boolean;
    3837    FDelay: TDateTime;
    3938    PacketQueue1: TListObject; // TListObject<TDelayedPacket>
     
    4342    procedure ReceiveData1(Sender: TCommPin; AStream: TListByte);
    4443    procedure ReceiveData2(Sender: TCommPin; AStream: TListByte);
    45     procedure SetActive(AValue: Boolean);
     44  protected
     45    procedure SetActive(const AValue: Boolean); override;
    4646  public
    4747    Lock1: TCriticalSection;
     
    5252    destructor Destroy; override;
    5353    property Delay: TDateTime read FDelay write FDelay;
    54     property Active: Boolean read FActive write SetActive;
    5554  end;
    5655
     
    141140end;
    142141
    143 procedure TCommDelay.SetActive(AValue: Boolean);
     142procedure TCommDelay.SetActive(const AValue: Boolean);
    144143begin
    145144  if FActive = AValue then Exit;
     
    167166    FreeAndNil(Thread2);
    168167  end;
     168  inherited;
    169169end;
    170170
Note: See TracChangeset for help on using the changeset viewer.