TZAbstractConnection.ConnectionLost issue
Posted: 14.09.2024, 18:26
In TZAbstractConnection.ConnectionLost the event is never considered to be raised i.e. EventErrorRaised is always False. It should be set under an else statement
https://github.com/frones/ZeosLib/blob/ ... .pas#L1032
p.s.
I think reordering the code would make it much more easier to reason about:
https://github.com/frones/ZeosLib/blob/ ... .pas#L1032
p.s.
I think reordering the code would make it much more easier to reason about:
Code: Select all
EventErrorRaised = False
if Assigned(FOnLost) then begin
EventErrorRaised := true;
FOnLost(Self);
end;