linux hangs when closing
This commit is contained in:
parent
5a241e77da
commit
e158635f57
@ -243,9 +243,15 @@ namespace ix
|
||||
}
|
||||
else if (pollResult == PollResultType_CloseRequest)
|
||||
{
|
||||
;
|
||||
_socket->close();
|
||||
}
|
||||
|
||||
// Avoid a race condition where we get stuck in select
|
||||
// while closing.
|
||||
if (_readyState == CLOSING)
|
||||
{
|
||||
_socket->close();
|
||||
}
|
||||
},
|
||||
_heartBeatPeriod);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user