diff options
author | rizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-04-06 08:02:35 +0000 |
---|---|---|
committer | rizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-04-06 08:02:35 +0000 |
commit | 4decf040938286b0efc6802a44b22304981ef9f9 (patch) | |
tree | b160ba1cb09535fbdda53632f365211873beb83e /channel.c | |
parent | 6f3da594d1084fc6922a46e3939ff5b601f76f39 (diff) |
the fix for bug #6399 makes sense. thanks wrmem for the report.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@17753 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channel.c')
-rw-r--r-- | channel.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1599,7 +1599,8 @@ struct ast_channel *ast_waitfor_nandfds(struct ast_channel **c, int n, int *fds, for (x=0; x<n; x++) ast_clear_flag(c[x], AST_FLAG_BLOCKING); if (res < 0) { /* Simulate a timeout if we were interrupted */ - *ms = (errno != EINTR) ? -1 : 0; + if (errno != EINTR) + *ms = -1; return NULL; } if (whentohangup) { /* if we have a timeout, check who expired */ |