linux hangs when closing
This commit is contained in:
parent
05f0045d5d
commit
d77f6f5659
@ -243,9 +243,15 @@ namespace ix
|
|||||||
}
|
}
|
||||||
else if (pollResult == PollResultType_CloseRequest)
|
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);
|
_heartBeatPeriod);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user