Ignore:
Timestamp:
May 24, 2011, 12:36:12 PM (13 years ago)
Author:
george
Message:
  • Fixed: Various minor bugs and enhancements.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • PinConnection/UCommPin.pas

    r119 r247  
    5151procedure TCommPin.Connect(Pin: TCommPin);
    5252begin
    53   if Assigned(Pin) then Disconnect;
    54   Self.RemotePin := Pin;
    55   Pin.RemotePin := Self;
     53  if Pin <> RemotePin then begin
     54    Pin.Disconnect;
     55    Disconnect;
     56    Self.RemotePin := Pin;
     57    Pin.RemotePin := Self;
     58  end;
    5659end;
    5760
Note: See TracChangeset for help on using the changeset viewer.