* TSocketHandler.Select: set LastError

This commit is contained in:
Ondrej Pokorny 2021-08-29 16:38:08 +02:00 committed by Michael Van Canneyt
parent 14dd153736
commit cb05049c4f

View File

@ -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;