mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-22 07:49:26 +02:00
fcl-net: no ESocketError after closing the connection
This commit is contained in:
parent
6b8ab2c4d2
commit
d36761f4a4
@ -856,7 +856,10 @@ begin
|
||||
Result:=Nil;
|
||||
NewSocket:=Accept;
|
||||
if (NewSocket<0) then
|
||||
Raise ESocketError.Create(seAcceptFailed,[Socket,SocketError]);
|
||||
if not FAccepting then
|
||||
exit
|
||||
else
|
||||
Raise ESocketError.Create(seAcceptFailed,[Socket,SocketError]);
|
||||
If FAccepting and DoConnectQuery(NewSocket) Then
|
||||
Result:=SockToStream(NewSocket)
|
||||
else
|
||||
|
@ -164,8 +164,6 @@ type
|
||||
|
||||
{$INTERFACES CORBA}
|
||||
|
||||
{ TWSTransport }
|
||||
|
||||
{ IWSTransport }
|
||||
|
||||
IWSTransport = Interface
|
||||
@ -1635,7 +1633,7 @@ begin
|
||||
else if ReadMessage then
|
||||
Result:=irOK
|
||||
else
|
||||
Result:=irClose
|
||||
Result:=irClose;
|
||||
end;
|
||||
|
||||
constructor TWSClientConnection.Create(aOwner: TComponent; aTransport: TWSClientTransport; aOptions : TWSOptions);
|
||||
|
Loading…
Reference in New Issue
Block a user