diff options
-rw-r--r-- | main/file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/file.c b/main/file.c index 5bafcfe48..6cacdc807 100644 --- a/main/file.c +++ b/main/file.c @@ -1002,7 +1002,7 @@ static int waitstream_core(struct ast_channel *c, const char *breakon, } if (ms < 0) ms = 1000; - if (!cmdfd) { + if (cmdfd > -1) { res = ast_waitfor(c, ms); if (res < 0) { ast_log(LOG_WARNING, "Select failed (%s)\n", strerror(errno)); |