Skip to content
Snippets Groups Projects
Commit 043a01e6 authored by Joshua Colp's avatar Joshua Colp
Browse files

0 is indeed considered a valid file descriptor (issue #7861 reported by PCadach)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41694 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 9edf55b6
No related branches found
No related tags found
No related merge requests found
......@@ -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));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment