* LHelp: harden message sending. Patch by Mike Thompson.

git-svn-id: trunk@46342 -
This commit is contained in:
reiniero 2014-09-28 15:34:46 +00:00
parent a05b8d84a9
commit 13fcf53a0d

View File

@ -130,8 +130,11 @@ end;
function TLHelpConnection.SendMessage(Stream: TStream): TLHelpResponse;
begin
Result := srNoAnswer;
fServerOut.SendMessage(mtUnknown, Stream);
Result := WaitForMsgResponse;
if fServerOut.Active then
begin
fServerOut.SendMessage(mtUnknown, Stream);
Result := WaitForMsgResponse;
end;
end;
constructor TLHelpConnection.Create;