mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-26 10:10:09 +02:00
httpserver: make sure that socket is freed even if StartServerSocket raised an exception
This commit is contained in:
parent
1ac8d5d221
commit
eaf4cffad8
@ -1464,8 +1464,11 @@ begin
|
|||||||
SetupConnectionHandler;
|
SetupConnectionHandler;
|
||||||
CreateServerSocket;
|
CreateServerSocket;
|
||||||
SetupSocket;
|
SetupSocket;
|
||||||
StartServerSocket;
|
try
|
||||||
FreeServerSocket;
|
StartServerSocket;
|
||||||
|
finally
|
||||||
|
FreeServerSocket;
|
||||||
|
end
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
StopServerSocket;
|
StopServerSocket;
|
||||||
|
Loading…
Reference in New Issue
Block a user