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