THRIFT-5036 buffered transport over sockets may run into unexpected timeouts [ci skip]
Client: Delphi
Patch: Jens Geyer
diff --git a/lib/delphi/src/Thrift.Server.pas b/lib/delphi/src/Thrift.Server.pas
index 654ab99..da053b9 100644
--- a/lib/delphi/src/Thrift.Server.pas
+++ b/lib/delphi/src/Thrift.Server.pas
@@ -390,20 +390,17 @@
end;
except
- on E: TTransportException do
- begin
+ on E: TTransportException do begin
if FStop
then FLogDelegate('TSimpleServer was shutting down, caught ' + E.ToString)
else FLogDelegate( E.ToString);
end;
- on E: Exception do
- begin
+ on E: Exception do begin
FLogDelegate( E.ToString);
end;
end;
- if context <> nil
- then begin
+ if context <> nil then begin
context.CleanupContext;
context := nil;
end;