mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-06-16 15:38:15 +02:00
* TSocketHandler.Select: set LastError
This commit is contained in:
parent
14dd153736
commit
cb05049c4f
@ -422,6 +422,10 @@ begin
|
||||
CheckSet(FDSW,sosCanWrite);
|
||||
CheckSet(FDSE,sosException);
|
||||
end;
|
||||
if Res<0 then
|
||||
FLastError:=SocketError
|
||||
else
|
||||
FLastError:=0;
|
||||
end;
|
||||
|
||||
function TSocketHandler.CanRead(TimeOut : Integer): Boolean;
|
||||
|
Loading…
Reference in New Issue
Block a user