mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
Make timeouts work more reliably
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@20098 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
7de873c1d6
commit
cc6f31ceb4
2 changed files with 8 additions and 2 deletions
|
@ -2703,7 +2703,8 @@ static void callEncoder (DOContext *ctxt)
|
|||
* of the loop.
|
||||
*/
|
||||
if ([runLoop runMode: NSConnectionReplyMode
|
||||
beforeDate: limit_date] == NO)
|
||||
beforeDate: limit_date] == NO
|
||||
|| [timeout_date timeIntervalSinceNow] <= 0.0)
|
||||
{
|
||||
if (limit_date == timeout_date)
|
||||
{
|
||||
|
@ -2719,7 +2720,8 @@ static void callEncoder (DOContext *ctxt)
|
|||
* Normal operation - wait for data or for a timeout.
|
||||
*/
|
||||
if ([runLoop runMode: NSConnectionReplyMode
|
||||
beforeDate: timeout_date] == NO)
|
||||
beforeDate: timeout_date] == NO
|
||||
|| [timeout_data timeIntervalSinceNow] <= 0.0)
|
||||
{
|
||||
M_LOCK(_queueGate); isLocked = YES;
|
||||
node = GSIMapNodeForKey(_replyMap, (GSIMapKey)sn);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue