[*] i dont think this path should ever be hit, but just to be certain, lets check the networks output channel translation object for an error if the socketbase doesnt know of the last fatal error code
This commit is contained in:
parent
b8540c77a7
commit
4b79aa902b
@ -456,6 +456,11 @@ namespace Aurora::IO::Net
|
||||
{
|
||||
NetError_SetOsError(this->error_, this->socketChannel_.inputChannel.pNetReadTransaction->GetOSErrorCode());
|
||||
}
|
||||
else if (this->socketChannel_.outputChannel.pNetWriteTransaction_ &&
|
||||
this->socketChannel_.outputChannel.pNetWriteTransaction_->Failed())
|
||||
{
|
||||
NetError_SetOsError(this->error_, this->socketChannel_.outputChannel.pNetWriteTransaction_->GetOSErrorCode());
|
||||
}
|
||||
}
|
||||
|
||||
return this->error_;
|
||||
|
@ -39,6 +39,7 @@ namespace Aurora::IO::Net
|
||||
bool CanResize();
|
||||
|
||||
private:
|
||||
friend struct SocketBase;
|
||||
SocketBase * pParent_;
|
||||
AuSPtr<IAsyncTransaction> pNetWriteTransaction_;
|
||||
void * pOutSendPointer_ {};
|
||||
|
Loading…
Reference in New Issue
Block a user