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