mirror of
https://github.com/Kiritow/GSock.git
synced 2024-03-22 13:10:51 +08:00
Fix bug in NBAcceptResult
This commit is contained in:
parent
014e216301
commit
5071f615f2
|
@ -235,6 +235,11 @@ int vsock::setNonblocking()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool vsock::isNonblocking()
|
||||||
|
{
|
||||||
|
return _vp->nonblocking;
|
||||||
|
}
|
||||||
|
|
||||||
vsock::~vsock()
|
vsock::~vsock()
|
||||||
{
|
{
|
||||||
if(_vp)
|
if(_vp)
|
||||||
|
@ -1040,7 +1045,8 @@ void NBAcceptResult::_impl::update()
|
||||||
|
|
||||||
if (ret >= 0)
|
if (ret >= 0)
|
||||||
{
|
{
|
||||||
*out_binding_sfd = sfd;
|
// This is a BUG!! Fixed.
|
||||||
|
*out_binding_sfd = ret;
|
||||||
*out_binding_created = true;
|
*out_binding_created = true;
|
||||||
status = 2;
|
status = 2;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user